System Administration and Batch File

Hi all,
I linked a batch file to be opened in my pdf file, but every time I open this through the link a message comes up saying "disallowed by your system administrator".
Can anyone show me how to allow the batch file to be opened
Thanks

This is a Security feature. In order to change what can be opened as an attachment, you need to edit the registry.  The ETK Preference Reference has the information to edit the registry that you will need.
Attachments

Similar Messages

  • Please help how to run System commands and batch files thru java program

    Sir,
    I want execute OS commands like dir,cls..etc and batch files,.exe filesthru java program.
    I have tried it sofar thru Runtime.getRuntime().exec("execute.bat");
    but it is not working.anybody knows about how to run the system commands thru java please give me the code.
    thank you,
    regards,
    j.mouli

    I've seen other posts with this questions, and answers. Unfortunately I didn't pay much attention. But the basic idea is to exec command.com and pass the specifc batch or command as an argument.

  • ALE-Interface and batch file

    Hi,
    So far we have transferred Data from one system to main system through ALE-Interface and Batch file. Now we are thinking to harmonize and optimize this process and run all data transfers though ALE-Interface and eliminate Batch File process.
    Can anybody tell me, why the ALE-Interface is better than Batch file for data transfers?
    Thanks

    Batch file is carried out at offline and at certain time intervals
    where as ALE is online transfer and while triggering a particular tcode it can be made to trigger
    This is why ALE is best
    cheers
    S.Janagar

  • Remove odbc system dsn using batch file and odbcconf

    I create user system dsn entries by using a batch file and odbcconf call.  I've found references here on how to do that, yet cannot seem to find any results on how to remove them using that same call.  The library information (http://msdn.microsoft.com/en-us/library/ee388579(VS.85).aspx) states add and modify a system dsn for configdsn and configsysdsn and references equivalent to SQLConfgDataSource function. (http://msdn.microsoft.com/en-us/library/ms716476(VS.85).aspx) but the config data source function has a a removal and this doesn't seem too. 
    Apologies for being obtuse, but I can't seem to locate it.  Any links to how this is done from a batch file are much appreciated.
    Regards,
    NR.

    John C is basically correct, you can remove a System ODBC data source via the registry, but there is apparently no way via odbcconf.exe.  That is of course really stupid and poor programming!
    John, however, forgot another important registry entry.  That key deletion he mentioned will disable the odbc connection, but not remove it entirely.  If you just do that and then open the "ODBC Data Source Administrator", you will find the
    connection is still listed, but you can't remove it or modify it.  It becomes completely screwed up! There is a value to delete as well which dictates if the connection is listed.  Consider it the "header" to the data source.
    Also, in Windows 2003 and 2008 at least, the registry key John C listed is not quite the location to modify either.  This is where to find them in those OSs:
    HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\%DSN%
    or
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\%DSN%
    The "header" I reffered to is a string value in inside a key (not the whole key!)
    HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
    or
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources
    The string value is the data source name.  This entry must be removed to remove the data source listing entirely.
    Here are some batch snipets for creating and then removing an odbc data source.  I'm leaving out some premiliary chunks, but you can figure it out from here. If you can't, you probably shouldn't be messing with this stuff in the first place!
    In these scripts, I create and remove a 32-bit data source in either a 32-bit or 64-bit version of windows.  The windows folder variable gets set to either "C:\Windows\System32" or "C:\Windows\SysWOW64" depending on the os.  In case you didn't
    know, on a 64-bit machine there is are also 2 differrent versions of the "ODBC Data Source Administrator" gui tool and the data source lists differ (32-bit vs 64-bit lists).  The 32-bit version on a 64 bit OS is found at "C:\Windows\SysWOW64\odbcad32.exe". 
    The one in the start menu will load the 64-bit version so you will never find your 32-bit connections there.
    Note - for simplicity I use the database name as the user name and and the data source name as well (in case there was any confusion). 
    Create the connection like so:
    echo Creating 32-Bit System ODBC Connection "%DatabaseName%"...
    "!WindowsFolder!\ODBCCONF.EXE" CONFIGSYSDSN "!ODBCDriver!" "DSN=%DatabaseName%;Server=localhost;Port=3306;Database=%DatabaseName%;UID=%DatabaseName%;PWD=%DatabasePassword%"
    And then remove it like this:
    echo Removing 32-Bit System ODBC Connection "%DatabaseName%"...
    if "%WindowsBits%"=="32" (
    If Exist "!TempRegFile!" Del "!TempRegFile!"
    echo Windows Registry Editor Version 5.00>>"!TempRegFile!"
    echo.>>"!TempRegFile!"
    echo [-HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\%DatabaseName%]>>"!TempRegFile!"
    echo [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources]>>"!TempRegFile!"
    echo "%DatabaseName%"=->>"!TempRegFile!"
    regedit /s "!TempRegFile!"
    ) else (
    If Exist "!TempRegFile!" Del "!TempRegFile!"
    echo Windows Registry Editor Version 5.00>>"!TempRegFile!"
    echo.>>"!TempRegFile!"
    echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\%DatabaseName%]>>"!TempRegFile!"
    echo [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\ODBC Data Sources]>>"!TempRegFile!"
    echo "%DatabaseName%"=->>"!TempRegFile!"
    regedit /s "!TempRegFile!"
    If Exist "!TempRegFile!" Del "!TempRegFile!"

  • Runtime.exec() and batch files

    I am having a problem on Windows 2000 while trying to execute a batch file with the Runtime.exec() method. Basically, the exit value returned from the call to Runtime.exec(), returned specifically by the waitFor() method in the Process class, is always zero, even if the batch file fails miserably. After looking into batch files further, it seems to me that the only way to get the exit value of the commands run in the batch file back to the Runtime.exec() call is to put "EXIT %ERRORLEVEL%" in the batch file. What this actually does is exit the command(cmd) shell that the batch file was running in with the exit code of the last command run. This is all great when calling the batch file with a Runtime.exec() call, but when you run it in a cmd window, the window closes when the batch file completes, because the call to EXIT exits the entire shell. I guess i'm just wondering, am i correct in assuming the exit value returned to the java process is going to be the exit value of the shell in which the batch file is running? I need to have the exit value actually indicate whether the batch file ran successfully or not, and if i have to put in the EXIT %ERRORLEVE% (which exits the cmd shell with the exit value of the last command run), then i'll do that, but if someone knows a better way of doing this, i am all ears. Thanks in advance

    To run any command from java code, the method is
    Runtime.getRuntime().exec( myCommandString )
    Where, myCommandString is something like "/full/pathname/command".
    If the pathname contains spaces (specifically in Windows), e.g. "c:\program files\windows\notepad", then enclose it in quotes within the quoted string. Or pre-tokenize them into elements of an array and call exec(String[] cmd) instead of exec(String cmd).
    From JDK1.3 there are two new overloaded Runtime.exec() methods. These allow you to specify starting directory for the child process.
    Note, there is a gotcha associated with reading output from commands. When the runtime exec's the process, it passes to it 3 streams, for stdin, stdout, and stderr; the out and err are buffered but the buffer size isn't very big. When your process runs, it reads (if needed) from in, and writes to out and err.
    If it doesn't write more than the buffer-size, it can run to completion.
    But if it tries to write more data to one or the other stream than the buffer can hold, the write blocks, and your process hangs, waiting for you to empty the buffer so it can write some more.
    So after the exec call, get the streams, and read from them in a loop until they both hit end-of-stream (don't block on either one, just read whatever is available from each, each loop iteration).
    Then when the streams have ended, call the process.waitFor() method to let it finish dying.
    Now, here is a code snippet how you achieve this.
    String strCommand = "cmd.exe /c " + strCommand;
    // For Solaris / unix it will be
    // String strCommand = "/usr/cobra/sol/runInstaller.sh";
    boolean bWait = true;
    //execute the command
    try
         Runtime r = Runtime.getRuntime();
         Process pr = r.exec(strCommand);
         Process pr = r.exec(callAndArgs);
         BufferedInputStream bis =new BufferedInputStream(pr.getInputStream ());
         int c=0;
         /** Outlet for IO for the process **/
         while (c!=-1)
              c=bis.read();
         /**Now wait for the process to get finished **/
         if(bWait == true)
              pr.waitFor();
              pr.destroy();
    catch(Exception e)
         System.out.println("Could not execute process " + strCommand);
         return(false);

  • Huge System.log and asl files. Can these be deleted? What may be the casue?

    Following on from an earlier posting regarding disappearing disk space, a couple of responses suggested running a disk utility such as OmniDiskSweeper.
    I ran this and it highlighted that the private folder, specifically 'private/var/log' is taking up almost 49 GB! There are 2 system log files:
    system.log.0 is almost 20 GB and system.log is close to 19 GB and a file, asl is 10 GB
    What are these, can they be deleted, and what may have caused them to be so large in the first place?

    This was being written repeatedly to the system.log file. I removed the application, restarted the Mac and the problem appears to be resolved
    Feb 4 21:45:23 adsl-69-111-166-204 radioSHARKServer[133]: * _NSAutoreleaseNoPool(): Object 0x25ad980 of class NSCFString autoreleased with no pool in place - just leaking\nStack: (0x939f6dac 0x93923e14 0x9394ff04 0xb0007438 0xb0004b8c 0xc054 0xc618 0x7000e7c8 0x7000dda8 0x7000cf64 0x90358c10 0x903587d4 0x90358718 0x903abb88 0x903582f4 0x90358464 0x903582f4 0x9036dd48 0x7000cad0 0x70005d04 0x7001140c 0x924d6624 0x924d62b0 0x924d6164 0x924d4b34 0x924d47f4 0x924c2de8 0x9232b0c8)
    Feb 4 21:45:23 adsl-69-111-166-204 radioSHARKServer[133]: * -[NSConditionLock unlockWithCondition:]: lock (<NSConditionLock: 0x12c2c0> '(null)') unlocked when not locked
    Feb 4 21:45:23 adsl-69-111-166-204 radioSHARKServer[133]: * Break on _NSLockError() to debug.

  • MySQLDump and Batch Files

    Hello all,
    I've been using the mysql connector package to populate and retrieve data from a mysql database. Two questions. First, I have recently become very fond of the mysqldump feature attached with the mysql package. Is there a way to call somthing like that from my connector module? ... or any other mysql "-esque" commands for that matter? (ie show tables, show create table someTable) ...
    I know that the first command I issue is actually a "USE myDatabaseName" to point the connector module at the correct databse. If the USE command is a mysql command, then I'm lead to believe that commands like SHOW will also be legit. However, what would the return structure be? ... would that also be some kind of ResultSet?
    Anyway the other question would be about the execution of batch files like the ones a mysqldump command would generate. I know that I am able to open the dumped text file and populate and run the commands via the methods:
    addBatch(String sql)throws SQLException // to populate
    executeBatch() // to run.. but is there a method that already does that?
    Thanks in advance
    -Curt

    Hi,
    Try Runtime.getRuntime().exec("batchfile.bat");
    Check out Class Runtime for more info.
    -adam

  • Java and batch files

    i want to launch my application by a batch file, whit this script:
    @echo off
    "C:\j2sdk1.4.2_08\bin\java.exe" -cp "C:\Documents and Settings\Intrepido\Desktop\my tesina" BSServer 2103
    pause
    my application as first operation, read from a txt file some row just to configure himself.
    if i launch my application from DOS, writing the path manually, my application does function correctly, instead, launching it from batch file, the first row read return a null value; (i use the RandomAccessFile class and the readLine() method to access file...)
    moreover, since my application is a JFrame class, i've associate some icon to the buttons of the window. starting the application manually from DOS the icons are benn loaded, instead, launching the application from the batch file, the icons are not loaded...
    Help me please...
    and sorry for my bad english...

    i want to launch my application by a batch file, whit
    this script:
    @echo off
    "C:\j2sdk1.4.2_08\bin\java.exe" -cp "C:\Documents and
    Settings\Intrepido\Desktop\my tesina" BSServer 2103
    pause
    my application as first operation, read from a txt
    file some row just to configure himself.
    if i launch my application from DOS, writing the path
    manually, my application does function correctly,
    instead, launching it from batch file, the first row
    read return a null value; (i use the RandomAccessFile
    class and the readLine() method to access file...)
    moreover, since my application is a JFrame class,
    i've associate some icon to the buttons of the
    window. starting the application manually from DOS
    the icons are benn loaded, instead, launching the
    application from the batch file, the icons are not
    loaded...
    Help me please...
    and sorry for my bad english...Since it is a java forum, I suppose that your app is a java app, isn�t it?
    First, define the MANIFEST.MF of your application, that must call the class that contains the famous public static void main(String[] args) method. If you haven�t made this method yet, make it. This method must initialize your app. If you don�t know how to create or how to configure the MANIFEST.MF file, read the articles below:
    http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html
    http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html
    Don�t forget to configure the reference of some jar files required by your app in the MANIFEST.MF if it is necessary.
    Second, create the batch file. The content of this file is simple. It has has to be like below:
    java -jar MyJarFile.jar
    Where MyJarFile.jar is your jar file. Then, put this batch file in the same directory of the jar file and double click it. Finish! Your app will be executed as you want.
    Of course, first of all, you have to configure the java environment variables in order to this app works well (JAVA_HOME, PATH, CLASSPATH, etc).
    It is just one manner to do what you want. There are other ways to do it, of course.

  • ID CS2 Mac system fonts and CMap files missing

    I have ID CS2 for Mac. I recently had some trouble uninstalling a trial version of After Effects CS3, so I used a script provided by Adobe that is for removing troublesome files and apps. Now, when I try to start InDesign CS2, I get an error message almost immediately that says "Adobe InDesign is missing required system fonts or CMap files. Please reinstall InDesign." Does anyone know what fonts and CMap files are needed by ID, and where they should go (in which directories/folders)? I don't want to have to reinstall the entire program. All the other CS2 apps work fine and I don't want to upset the apple cart (pardon the pun). I haven't trashed any of the files that the script uninstalled...they are in a folder on my desktop, so I can just put back what ID needs, as long as I know where they go.
    Thank you!

    By running the script it removed all Adobe-installed stuff. This included removing the "Reqd" folder in this path: Library > Application Support > Adobe > Fonts. InDesign CS2 expects that folder to be there. You could copy the folder from another computer, or do a reinstall on InDesign

  • Use CSV and batch file for net user command

    Hello Guys,
    I am trying to load domain user id's from a csv file and parse them through the net user /domain command.  I would appreciate it if someone could help me open the csv file and store each line as a variable so that it could be parsed.
    Thanks in advance.

    My apologies, I didn't notice that you specifically mentioned batch files in your question title.
    I don't have much to offer, as my batch skills are extremely rusty.
    I would personally be doing all of this via PowerShell, as the AD cmdlets can return any bit of information about your users that you'd like.
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • Orbd and batch file

    What am I doing wrong? If I start the orbd by opening a cmd prompt on win2k, and typing orbd -ORBInitialPort 1050 -serverPollingTime 200
    Then, I start servertool and register....everything works fine.
    If I take orbd -ORBInitialPort 1050 -serverPollingTime 200 and put it into a batch file....
    start orbd -ORBInitialPort 1050 -serverPollingTime 200
    register in servertool....
    run the client and it cannot connect to the orb, a null value is returned instead?
    Any help is very much appreciated.

    I tried this for my batch file...still doesn't work
    REM - Start the ORB daemon
    start %JAVA_HOME%\bin\orbd -ORBInitialPort 1050 -serverPollingTime 200
    @echo Wait 10-15 seconds for the orbd to start
    @pause
    REM - Register the persistent server with orbd using servertool
    %JAVA_HOME%\bin\java com.sun.corba.se.internal.Activation.ServerTool -ORBInitialPort 1050 -cmd register -server MyServer -applicationName s1 -classpath c:\myserver\myfiles;

  • OWF and batch files

    Hi!
    I have a question to Oracle Workflow.
    Particularly with regard to the Activity USER_DEFINED.
    Is there a way out of a batch file to get a access to the contents of "Process Editor => Activities => USER_DEFINED => Script => value".
    When I debug I saw the variable "argv.stdin". So that ought to be possible?
    Thanks!

    Hi,
    If you meant , a way to list the values specified for SCRIPT attribute the you can use OMB+ scripts to crawl through your process flows and list the values for this attribute.
    Regards
    Mahesh

  • Fscommand and Batch Files

    Hello, been wrestling with this one for a bit. I am trying to
    figure out what code to use that would let me push a button ( on
    release ) in my standalone projector , and have a batch file
    execute.. is this possible ?

    yes it is posible
    create your .bat file,
    put in the "fscommand" folder relative to your projector file
    for your button
    on(release){
    fscommand("exec", "filename.bat");
    }

  • CF PROBE and batch files

    I've setup a CF Probe on my Development Server to ensure my
    CF Production server is up and running (services = Apache and CF
    Application Server). It checks the PROD login page and if it times
    out in 30 sec the probe fails. I understand I can execute a file
    (batch file with net start and net stop) but the problem is I need
    to have the probe somehow point to the .bat file on the PROD server
    and not on the local machine. How can I remotely access this batch
    file and execute it? I don't know how to point to the file on the
    other server... can anyone help?

    I've setup a CF Probe on my Development Server to ensure my
    CF Production server is up and running (services = Apache and CF
    Application Server). It checks the PROD login page and if it times
    out in 30 sec the probe fails. I understand I can execute a file
    (batch file with net start and net stop) but the problem is I need
    to have the probe somehow point to the .bat file on the PROD server
    and not on the local machine. How can I remotely access this batch
    file and execute it? I don't know how to point to the file on the
    other server... can anyone help?

  • Java and Batch File Issue - need urgent help

    I have a java program which calls a batch file. This batch file calls another java program. I want an option so that I can close this java program from main program.
    If i try process.destroy then it will call batch file and not java program.
    I can't go away with batch file.
    I will appreciate if someone can help me.

    khannap wrote:
    Hi, Thanks for the help but this doesn't seem solving my problem completely. I will appreciate if you can help more.
    I will explain you the scenario -
    1. There is java program provided as an external program to me.Only changes things slightly.
    2. This java program is called using batch file. When batch file is started this java program starts and listens on a socket for incoming data.I would want to wrap the launch of this java program in another JVM so we can use process.destroy().
    3. I am writing a program to check performance of the above java program. I want to call this java program from my program in a loop having some varying config data. When I run the loop first time I create a batch file at run time which executes the batch file provided by vendor. This batch file starts the socket. Once my message list is over then my loop goes to executing the batch file again with different config parameters. But this time I run into issue because my previous java program is not killed after message sending was over.Would it be acceptable to mung the 3rd party batch file to insert a wrapper JVM?
    Even if i use threads I don't think I can get rid of batch file.I did not suggest getting rid of batch files.
    So, I need to find a way so that when any iteration of loop is over then this socket program is killed. These 3rd party java programs - do they not have a "terminate" command you can put at the end of your message list?
    Even if i closed the socket from my client program that doesn't help because server is still listening and waiting for new client.
    I need to kill server which was started by batch file.On Linux it would be fairly simple to modify your batch file to determine what the process id is and send the process a signal to terminate it.
    Not sure what you can do on Windows.

Maybe you are looking for

  • My IMac is filled with movies but I have none

    I have no movies on my computer at all, and  I do not know what files are considered "movies" .  I was also wondering how to get rid of the files to clear up the space.

  • HT4489 transferring my contacts to my phone from my computer, what program do i use, i have the apple 3gs

    transferring my contacts to my phone from my computer saved as vcard, what program do i use, i have the apple 3gs. I used Icloud and clicked on import in contact there a message came back with an error

  • After iOS 5, calendar info older than 1 yr is gone

    I updated my iPod Touch 4th gen from 4.3.5 to iOS 5 yesterday.  After the long process, I noticed that my calendar info only went back to Oct 12, 2010!  In settings, Calendar -> Sync is set to All Events.  Can I still get that info back from the back

  • Need Clarifications

    Hi, I am trying to learn BO suite of tools and any kind of guidance/material on the following would be really appreciated. Universe     1. What are the objects from BW, which can be used as source for creating a Universe Other than InfoCubes.     2.

  • Illustrator not opening any .AI Files?

    All my .ai files will not open. Im getting a error saying the file is an unknown format? But the file was created in Illustrator? CS6 to be exact. Ive tried to open in photoshop, and Viewer.. Nothing works. Please advise..