Run the file .bat with arguments?

Hello

I need to run the .bat file with Adode Indesign JavaScript parameters/arguments. "File.execute ()" runs the file using the appropriate application. He is running suceessfully in .bat file. But I'm unable to pass arguments. I need to run the command as

For example: test.bat parameter1 parameter 2

var myFile = new File("c:\\test.bat");

myFile.execute ();

The above statements works very well. Is it possible to run settings. Please suggest the solution above the problem.

How "combat environment variables?

type test.bat

echo% % BLAH > c:\test.txt

$.setenv ("blah", "value");

File("c:\\test.bat"). Execute();

Dirk

Tags: InDesign

Similar Questions

  • How to run the Extendscript .bat file?

    I have a file with some instructions .bat and I want that it runs from Extendscript.

    How to run the Extendscript .bat file?

    I tried execute(); order and it seems that .bat ran but no result, but when I double click on the .bat file all worksout very well.

    How used runtime.exec () extend the script?

    Can I communicate with Java JDK thru ExtendScript and run commands such as runtime.exec ()?

    can someone please?

    You can do it like this:

    var batFile = new File("C:\\path\\to\\my\\batfile.bat");
    batFile.execute();
    

    Note that this will only work if your system is configured in such a way that by double-clicking the .bat file runs it in reality.

    You can also use

    system.callSystem()
    

    but note that this is only available in AE.

  • Cannot run the setenv.bat file

    Hello guys,.

    I started working on OracleAS integration B2B recently. I finished installing and I started to work on EDI X 12 transaction Internet scenario, I finished the whole process in the Oracle B2B user interface for this scenario, but I'm not able to run the setenv.bat file located in the
    ORACLE_HOME\ip\install way, when I'm clicking the setenv.bat file its does not, and I can't seem to set the classpath.
    Because of this problem, I am unable to go further, because I can't run the files deq.bat and enq.bat without running the setenv.bat file, please can anyone give me the solution for this problem.

    Thank you

    Sunny

    The solution is very simple: do not close the command prompt, but the second script from the prompt in command as well as the first! This is how it is intended to be used.

    If for any reason, you need to run a single script, you can modify to call the script setenv.bat as the first step:

    call %ORACLE_HOME%\ip\install\setenv.bat

    Or alternatively, you can change your environment and set the necessary properties manually so that they persist. However, I would still strongly advice against a double click on the scripts. You want to run it from a command prompt, to keep the command prompt when the script is done, otherwise you may miss important error messages.

  • What is the file brayhs with size zero?

    Original title: brayhs

    What is the file brayhs with size zero?
    How can I clean my system (windows Server 2003) this?

    Run a full scan of the system and set your PC to show hidden and system files and the folder and check if there is any suspicious element or just try to delete.

  • Is it possible to run the command script with user account administrator rights?

    Is it possible to run the command script with administrator user account rights means please tell me how to...

    I need to run it in windows 7 professional service pack 1.

    There are a few myths that won't go away, for example

    • You can perform administrative tasks when you are working from a command prompt.
    • A script (batch file, VBScript, PowerShell) gives you administrative rights.

    There is no substance to a myth. Your account has administrator privileges, or it does not. There is no backdoor.

  • Error-cannot run the file: iexplore.exe. ShellExecuteEx failed; code 2.

    Hello, my pc is very slow, and then restored the system.
    And I had to delete the game 'perfect world '. I had Setup, install and went again. Except that this error when you have completed installation:

    Cannot run the file: iexplore.exe
    ShellExecuteEx failed; code 2.
    The system cannot find the specified file.

    I tried "Run as Administrator" and also play with the "Simple Start" and continued with the error.

    Or find me in my computer the "iexplorer.exe".

    A friend told me that there is an error in the "System32" folder But I haven't changed it.

    What is this error? Can I format the computer?

    PS: I do not speak or write English very well. Sorry for mistakes in the text.

    Click Start, type: enable or disable windows features

    Press enter

    Uncheck Internet Explorer

    Click OK

    Restart if prompted.

    Click Start, type: enable or disable windows features

    Press enter

    Uncheck Internet Explorer

    Click OK

    Restart if prompted.

    Check to see if you can launch Internet Explorer

    If the problem persists:

    Click Start
    Type: CMD, according to the results, right-click CMD
    Click on "Run as Administrator"
    At the command prompt, type: sfc/scannow

    This will check for any breach of integrity

    Restart your system

  • Cannot run the file: code 740, the requested operation requires a rise. While trying to launch Call of duty

    Cannot run the file: D:\Call-Of-Duty-Black-op2-II/redist/vcredist_*86.exe CreateProcess failed; code 740. The requested operation requires a rise. It is a game is call of duty black ops 2
    Please help me if you can, I want to play this game, please help me, are any developer here?
    Original title: cannot run the file: D:\Call-Of-Duty-Black-op2-II CreateProcess failed; code 740. The requested operation requires a rise. It is a game is Tanya call black ops 2

    Hello

    Welcome to the Microsoft community. I've surely you will help find a solution on the issue of game Call of duty .

    1 have you connected as administrator to start the game?

    2. were you able to install the game successfully?

    3. What is the brand and model of the computer?

    4. have you already compare the minimum requirements for the game runs correctly on the computer?

    Method 1:

    What are the minimum requirements for the call of duty to work. Compare specifications with your computer.

    Operating system:          Windows Vista (Service Pack 2) or Windows 7

    CPU:      Intel Core 2 Duo E8200 2.66 GHz or AMD Phenom X 3 8750 2.4 GHz

    Memory: 2 GB for 32-bit operating system or 4 GB for the 64-bit operating system

    Hard disk space: 16 GB

    Graphics hardware:        NVIDIA GeForce 8800GT 512 MB or ATI Radeon HD 3870 512 MB

    Method 2:

    I suggest to refer to this article and run the game in check with the question administrator mode.

    How to apply once with a full administrator access token?

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-run-an-application-once-with-a-full-administrator-access-token

    Hope this information helps. Please reply back with the State so that we can help you.

  • [CS4:JS] How to run the file ".sh" via Javascript

    Dear all,

    How to run the file ".sh" through Adobe InDesign Javascript, I used the code below:

    //================== Code =============================//

    var myFile = File("xxx/xxx/xxx/Test.sh");

    var Exec = "sh" + "" + "\""+myFile+"\;"

    Leader (exec). Execute();

    //================== End =========================//

    codes above does not work, I checked before without the "sh" in addition, it does not work.

    Please can someone give me the solutions and the suggestion, and I'd appreciate it.

    Thanks and greetings

    SudhaN T.R.Harihara.,.

    Have your IDMLExportparse.sh file runs permission set?

    If you open Terminal.app and type

    /Applications/MacXinPro/IDMLExportparse.sh

    It work? Or do you need to run "sh"? If so, either adjust the

    permissions with

    chmod a + x /Applications/MacXinPro/IDMLExportparse.sh

    or modify the JavaScript code for:

    shell("sh "+myFile);
    
  • I have download an IDM software.there are as many files how can I understand that by running the file IDM will install in my computer and I can use it.

    I have download an IDM software.there are as many files how can I understand that by running the file IDM will install in my computer and I can use it.

    Hello

    Contact the Support of IDM in this regard.

    The link there is a Support tab on the top right > run the mouse cursor over them for the Support Options > 'how to use IDM.

    http://www.internetdownloadmanager.com/download.html

    See you soon.

  • I lost all the file associaation, with the exception of aol, how do I add these files?

    I lost all the file associaation, with the exception of aol, how do I add these files?

    Hello

    1. what happens when you try to open a program?
    2. have you made changes on the computer recently?

    Try the steps listed in the article below and check.
    How to change or choose the program that starts when you double-click a file in Windows XP
    http://support.Microsoft.com/kb/307859

    I hope this helps.

  • How to handle the UAC to run the file?

    Get a weather app to run each time that the boot of win7, but it always pop up to alert security of the UAC.

    I would like to know any approach to handle this situation:

    (1) add known run the file in the lists of confidence, so he would not jump to the top once again

    (2) turn off UAC

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    There is no "trust list" for UAC because that would be a weakness that hackers could exploit immediately. You have these options:

    • Download a compatible version of Windows 7 software.
    • Ask the supplier, how it can be changed to be compatible Windows 7.
    • Turn off UAC (not recommended)
  • DVD how much we need for the files backup with backup and restore program?

    Hello how are you?
    DVD how much we need for the files backup with backup and restore program? Y at - it large differences in the time and space between write backups on DVD and external hard drive?

    I do not understand your question.  Asked how the space has been used on your C: drive and you answered 60 GB.  Now you say your PARTITION C: is 60 GB with only 20 GB used?  I really don't understand what you're so confused.  It's simple arithmetic grade 3rd.  What is space you USED on the C: drive, that multiply by 0.7 to obtain the amount of space will be used on your backup disk after compression.  Divide this number by 4.7 and round.  That's how many DVDs you'll need if you insist on the use of DVDs for backup.  Then

    (1) If you are using 60 GB, the answer is (60 x.7) / 4.7 = 8.936.  I rounded up to 9 and added 1 just to be sure.

    (2) If you use only 20 GB, the answer is (20 x.7) / 4.7 = 2.97 rounded up to 3.  Add 1 and get 4.

    If you use only 20 GB, I am very surprised, because almost any important installation of Windows 7 is going to take more than 20 GB.

    All of this assumes that you do NOT use the Windows backup and restore program, but one that I recommended.  When I used the windows one, the results were several times the space that I used on my C: partition.

    Good luck.

  • Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    3177349 wrote:

    Hi all, I want to know what can I complie forms in windows and run the file met in the other operating system

    It depends only on the BONE of the application server.

    If your OS development and OS is different, you have to compile the fmb in the server again.

    Hamid

  • name the file exported with date

    Hi, I use this command to export my schema

    exp file = c:\expdat.dmp med/med

    I think that if I use the same command over and over again, it will replace the old file with the new one? right?

    2. I want to name the file exported with the sysdate (date and time)? , and I think it's a way to create a new file and does not replace the old file.

    Thank you

    Here is an example of adding a date for a file name:

    > exp med/med file=c:\expdat.%date:~10,4%%date:~7,2%%date:~4,2%.dmp

    To add as a data and once, you just need something based on time that is unique, so try something like:

    > exp med/med file=c:\expdat.%date:~10,4%%date:~7,2%%date:~4,2%.%time:~1,1%%time:~3,2%%time:~6,2%%time:~9,2%.dmp

  • Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Hello

    2796614 wrote:

    Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?

    Of course, it is possible.  According to what the text file looks like to, you can create an external table that treats the text file as if it were a table.  Otherwise, you can always read the file in PL/SQL, using the utl_file package and INSERT of PL/SQL commands.

    You have problems whatever you wantt?  If so, your zip code and explain what the problem is.

    Whenever you have any questions, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the exact results you want from these data, so that people who want to help you can recreate the problem and test their ideas.  In this case, also post a small sample of the text involved file.

    If you ask about a DML operation, such as INSERT, then INSERT statements, you post should show what looks like the tables before the DML, and the results will be the content of the table changed after the DML.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: Re: 2. How can I ask a question on the forums?

Maybe you are looking for

  • How to create A less B Mix?

    I would take a stereo track, the left and right by 180 ° compared to the other channels and add them in mono to create A less B Mix. I know how to do this on a mixing console but I can't find the commands for this logic. Someone knows how to do this?

  • Cannot start the new hard drive after clone on T61p

    I have a T61p which had a Hitachi HD of 100G.  I bought through Lenovo a Toshiba 500 G HD placed in the location of the laptop HD, put the old HD 100 G in an ultrabay adapter when we normally DVD drive and booted from a Clonezilla Live USB 4 G drive.

  • Telepresence server pool exceeds the capacity of the license

    1, CUCM 11.0; 2, cisco TelePresence driver XC4.2 3, cisco TelePresence server on VM 4.3 (1.13) LIC-TP-SMP and especially the licenseis on the way. When I tested the video-conference with these devices that I have, I got an error: conferencefactory. "

  • BlackBerry Smartphones Blackberry Bold 9650:3, CDMA or both?

    In Options | By the way, I see that my BB Bold 9650 smartphone has: (3G, CDMA, WiFi) What does that mean? I thought that the "BOLD" was a 3G phone. This particular model can use both systems?

  • How can I get rid of the annoying floating black bar

    We use Acrobat Pro DC, a much larger in our company.It appears toolbar whenever the mouse gets near him conceal what is underneath.It has the same tools as the regular toolbar at the top of the window if it really servers no end other than for hide w