Run the bat with cfexecute

Hello
This is a newbie question, but I'm stuck. I have a .bat that works very well through the command prompt, but doesn't work with < cfexecute >, it seems simply to read the .bat but not run. The .bat reads as follows:

Java - classpath ".;" C:\CFusionMX7\wwwroot\i-recall\javaClasses\GATE-3.1\bin\gate.jar' AnnieAPI

"When I run < cfexecute name="C:\CFusionMX7\wwwroot\i-recall\javaClasses\GateClasspathRun.bat ' variable = "myVar" timeout = "100" >
< / cfexecute >

The output looks like this:
C:\CFusionMX7\runtime\bin > java - classpath "C:\CFusionMX7\wwwroot\i-recall\javaClasses\GATE-3.1\bin\gate.jar" AnnieAPI

Simply, he reads and does not run the AnnieAPI java command. I didn't write so maybe I need to add something to run this .bat file. Any help is appreciated.

Kalen - G

I thought about it. Even if the bat file and the java class are in the same folder, I did specify the location by adding the following lines at the beginning of the .bat file:

EDI
CD cfusionmx7/wwwroot/i-reminder/javaClasses

Now it works perfectly. Thanks for all the help, I appreciate it.
-Kalen

Tags: ColdFusion

Similar Questions

  • Windows does not run the .bat files

    So, this happened to me before, and I never seem to be able to find a solution.

    Whenever I try to run a batch file, I get an error saying '... Cannot find C:\Users\Kyle\Desktop\something.bat.

    I try to run it through run them, CMD, shell, and nothing will happen otherwise that "cannot locate 'something' c.

    So, I'm trying to edit the .bat with the exact location, and nothing happens. I still get the error.

    In this case, I am trying to run a decompiler for source games .bsp map, but it's already happened.

    See the solution in this thread

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/unable-to-run-bat-file-in-Windows-7/71509d83-27A1-4c5a-ABE9-a627489880f3

    Check theshortcut icon properties, check that they are pointing to the bat/s file.

  • Run the .bat file using fileObj.execute () showing the result by completely removing the lines of code in extend script?

    Hi guys

    I created a dynamic .bat file created inside java and copy it to a location and managed through fileObj.execute ();

    Example of

    -------------------

    var line1 = 'some code ";

    var line2 = 'some code ";

    myCode var = line 1 + line 2;


    var myFileC = new file

    myFileC.open ('w');

    myFileC.write (myCode);

    myFileC.copy ("some location\file.bat");

    myFileC.close ();

    Run the .bat file

    batFile var = new file ("of the location\file.bat");

    batFile.execute ();

    Now .bat file is successfully executed but the content of this file created bat shows up to extend in script by removing all my code above...

    I have to cancel to do back whenever I run and sometimes accidentally I saved it lose all the code.

    can someone help with this problem?

    Simply change it to this:

    var myFileC = new File ("some location\file.bat");

    myFileC.open ('w');

    myFileC.write (myCode);

    myFileC.close ();

  • PL/SQL to run the exe with the DB settings

    Hi all

    I have a little problem.

    I'm in the need to write that all connection, disconnection and connection fail data to the Windows application log. To do this, I already tried various solutions, but with my configuration (EE Oracle 10.2.0.4) and Windows Server 2003 R2 X 64 the only possible solution is (apparently) the following.

    I create a Table with the information I need:

    --------------------------------------

    CREATE TABLE logonaudittable
    (
    event VARCHAR2 (15).
    SID NUMBER,
    series # NUMBER,
    time DATE,
    name VARCHAR2 (30),
    osuserid VARCHAR2 (30),
    MachineName VARCHAR2 (64)
    )
    /
    --------------------------------------

    I have create a trigger for the connection data, one for logging for the logon fails:

    ------------------------------------------------

    LOGON trigger.

    Database of logonauditing AFTER logon ON CREATE OR REPLACE TRIGGER
    DECLARE
    MachineName VARCHAR2 (64);
    osuserid VARCHAR2 (30);
    v_sid NUMBER (10);
    v_serial NUMBER (10);

    CURSOR c1 IS
    SELECT sid, serial #, osuser, machine
    FROM v$ session WHERE audsid = userenv ('sessionid');
    BEGIN
    OPEN c1;
    EXTRACT the c1 IN v_sid, v_serial, osuserid, machinename;

    INSERT INTO logonaudittable VALUES ('CONNECT', v_sid, v_serial, sysdate,
    user, osuserid, machinename);

    CLOSE c1;
    END;
    /

    -----------------------------------------------

    Logoff trigger

    CREATE OR REPLACE TRIGGER logoffauditing
    BEFORE logoff ON database
    DECLARE
    MachineName VARCHAR2 (64);
    osuserid VARCHAR2 (30);
    v_sid NUMBER (10);
    v_serial NUMBER (10);

    CURSOR c1 IS
    SELECT sid, serial #, osuser, machine
    FROM v$ session WHERE audsid = userenv ('sessionid');
    BEGIN
    OPEN c1;
    EXTRACT the c1 IN v_sid, v_serial, osuserid, machinename;

    INSERT INTO logonaudittable VALUES ('LOGOUT', v_sid, v_serial, sysdate,
    user, osuserid, machinename);

    CLOSE c1;
    END;
    /

    -------------------------------------------------------

    Logon trigger FAILS

    CREATE OR REPLACE TRIGGER logonfailauditing
    AFTER ON SERVERERROR database
    DECLARE
    MachineName VARCHAR2 (64);
    osuserid VARCHAR2 (30);
    v_sid NUMBER (10);
    v_serial NUMBER (10);

    CURSOR c1 IS
    SELECT sid, serial #, osuser, machine
    FROM v$ session WHERE audsid = userenv ('sessionid');
    BEGIN
    IF (IS_SERVERERROR (1017)) THEN
    OPEN c1;
    EXTRACT the c1 IN v_sid, v_serial, osuserid, machinename;
    INSERT INTO logonaudittable VALUES ('FAILLOGON', v_sid, v_serial, sysdate,
    user, osuserid, machinename);
    CLOSE c1;
    END IF;
    END;
    /

    -------------------------------------------

    The I create a trigger that starts each time something is written on the table.
    This trigger must start an EXE file which writes the last data written on the table in the Windows application log.

    So I need a trigger that executes my WRITELOG. EXE file adding parameters. For example:

    Run WRITELOG. Event time username sid EXE

    So my program will write a journal in Windows with these data:

    Event: opening of SESSION
    SID: 2938473
    Time: 12/12/2011 11:45:32
    User name: Scott

    And so on.

    I already have the program that does this, I need to run the program with the right data directly from trigger or procedure performed by my trigger.

    Hope that I was clear and REALLY hope that someone can help me!

    Thanks to you all!

    So practically I should create a job something like this:

    BEGIN
    () dbms_scheduler.create_job
    job_name-online "CONNECTION."
    job_type-online "EXECUTABLE."
    job_action => ' c:\yourdirectory\FILE. LOGON EXE ' | v_sid | » '|| v_serial | » '|| to_char(sysdate,'MM/DD/YYYY') | » '|| the user | » '|| osuserid | » '|| MachineName |';
    number_of_arguments-online 1
    start_date => SYSTIMESTAMP,
    enabled-FALSE, online
    comments => ' SQL * Loader jobs Demo');
    END;
    /

    and then I need to start this work every time that the LOGON trigger fires and it must be the trigger that inserts into the work, the arguments v_sid, v_serial, etc..

    ... I don't know how I can do this. What I need to create a procedure that creates jobs and the procedure is executed by the trigger? and how do you know the procedure to create the job with the data provided by the trigger. Sorry I ask much for the help, but I need this thing made in a time which is not compatible with me studying how to do it by myself. I will look at it, I want to know exactly how these things work, but now I need to speed things up a bit!

    Thank you for all the valuable assistance tfor!

  • run the bat in teststand

    Hello users,.

    Location:

    I'm calling from Teststand 4.1 a bat.file that runs software of programming (FLink.exe) with the corresponding hardware jtag (RLink of ST Microelectronics), program a µController my testobject.

    Problem:

    the bat file is executed, but the can´t µController programmed because of the en of the flink errror message!. But when I call the bat from the Explorer, that it works correctly.

    Has anyone experience with the nature of the problem?

    I would welcome a solution.

    Grettings

    Michael

    I found a solution to my problem with the help of an engineer by OR!

    I had to change the directory the active directory to the directory have been my work-batch file is run.

    See all related links:

    http://digital.NI.com/public.nsf/allkb/D0F75B559DB622B586256BBF007A1B64?OpenDocument

    http://digital.NI.com/public.nsf/WebSearch/365DC2996F67D8AF86256AF000558B90?OpenDocument

  • Run the application with the admin rights

    Hello

    I am a network administrator and I have problems with an external application. While running the application does not require local administrator rights, the software does an automatic updates check when it is launched. There are updates once a week. If the application is launched without administrator rights, the software does not check. Our users do not have local administrator rights. The result is that the application gets overwhelmed and an administrator needs to log in order to to refresh.

    Here are the solutions I've tried so far:

    1. I ran the application using the command runas , which works, but is not practical as an administrator will have to provide the password every time.

    2. change the compatibility of the application to 'RUN as administrator'. I have disabled UAC to make this work, but the user must always supply a password. I could create a locked user who cannot log on to any machine, etc, etc, but this seems like a stupid solution. I might as well give all admin rights.

    3 to research more, I tried to use RunAsSpc (http://www.robotronic.de/runasspcEn.html). This seems to work well and did exactly what I'm looking for, but created two issues: no drives mapped and an access violation when printing that I won't have to worry about troubleshooting.

    I had to give all users local administrator rights until I have a solution. Is it possible to allow the application to do its updates without granting full administrator rights to the entire system? Any recommendations?

    Yes, let the program provider to build their program cleverly.  It is not going to be a solution to this.

    Otherwise, you will need to just have someone who has admin rights not login once a week and install the necessary updates.  A bit like Microsoft Office Update (requires an administrator to do so).

  • I accidentally put to run the exe with adobe PDF viewr files and can't find how to cancel it

    I was running an exe file and accidentally did something and now he's trying all the files with the adobe PDF Viewer running and I can't undo. Help, please.

    See this tutorial.

    http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html?filter [2] = file Folder settings

  • Red field when I try to run the script with 10G

    I recently installed 10G XE. I am able to create a new user and was trying to run a script for JustLeeBooks on the site of Thompson Course Technology books. I downloaded the files on my computer and then entered the new user and viewed and downloaded the script. The area where appears the script is all red. When I click on run, nothing happens. This script box are red like that?

    I can click on remove and delete the script, but I can't seem to run the script.

    What should I do to run the script for my database class?

    Thank you.
    Vicki

    Hello

    Pre installed Apex XE is quite old and does not take in charge all new browsers.
    Did you try to use other browsers?

    You can also upgrade Apex
    http://www.Oracle.com/technetwork/developer-tools/Apex/upgrade-Apex-for-XE-154969.html

    But be aware that you lose the database management features. But you can make those for example with the SQL Developer as above shows link.

    Kind regards
    Jari

  • run the bat closing ms - dos prompt

    Hello guys,.
    I have a question for you.
    I have a java application and I want to run it from the pot.
    I need to run it to .bat file.
    My question is... when I run guest of ms - back to the bat file is open and it connects to each operation that I run on my request.
    I would like to close prompt ms - dos in the background, without closing the application.
    Is this possible?

    Thanks in advance,
    Concerning

    You can try to do something like this:

    @echo off
    cmd /c start /min java packagename.classname
    exit
    
  • FDM using so we can run the .bat file

    Hello

    I am trying to automate the process of load, IE I want to load data using FDM in essbase and once the data is loaded I want to launch a file beats through which in the essbase run scripts agg.

    If can I write it in the Aftload a script to call the .bat file that contains scripts agg.

    Is it possible to do?

    Can anyone help give me an idea for me on this?

    Thank you

    The Essbase adapter runs natively an aggregation after load if you properly configure the metadata. I suggest you only consult the Readme adapter.

  • Run the report with parameters when, select the Radio button

    HelloW Guys

    I run my report with the report parameter form now, I want to when I select a radio button and then check if my only the list value = 1 then run A report if my only the list value = 2 then launch report B

    Report A and B contain the same parameter

    What can I do?

    I am writing this trigger button
    DECLARE+.
    al_button NUMBER; +
    pl_id PARAMLIST; +
    pl_id2 PARAMLIST; +
    START to+.
    IF: type = 'A' THEN+.
    IF: RepType = "1" THEN+.
    * pl_id: = Get_parameter_list ('repPara'); -create a parameter list * +.

    IF not Id_null (pl_id) THEN+.
    Destroy_parameter_list (pl_id); +
    END IF; +

    pl_id: = Create_parameter_list ('repPara'); +

    Add_parameter(pl_id,'PARAMFORM',text_parameter,'NO'); +

    * Add_parameter(pl_id,'style_from',text_parameter,:style_from); -passing style ano parameter * +.

    * Add_parameter(pl_id,'style_to',text_parameter,:style_to); -passing style not as parameter * +.

    * Add_parameter(pl_id,'date_from',text_parameter,:date_from); -passing date as parameter * +.

    * Add_parameter(pl_id,'date_to',text_parameter,:date_to); -by the way that date as parameter * +.

    * Add_parameter(pl_id,'category',text_parameter,:category); -passing as the parameter category * +.



    Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Stitching_report.rdf ',+)
    asynchronous, runtime, the file system, pl_id, NULL); +
    ELSIF: Reptype = "2" THEN+.
    pl_id2: = Create_parameter_list ('repPara2'); +

    Add_parameter(pl_id2,'PARAMFORM',text_parameter,'NO'); +

    * Add_parameter(pl_id2,'style_from',text_parameter,:style_from); -passing style not as parameter * +.

    * Add_parameter(pl_id2,'style_to',text_parameter,:style_to); -passing style not as parameter * +.

    * Add_parameter(pl_id2,'date_from',text_parameter,:date_from); -passing date as parameter * +.

    * Add_parameter(pl_id2,'date_to',text_parameter,:date_to); -by the way that date as parameter * +.

    * Add_parameter(pl_id2,'category',text_parameter,:category); -passing as the parameter category * +.


    Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Delivery_report.rdf ',+)
    asynchronous, runtime, the file system, pl_id, NULL); +
    END IF; +
    END IF; +
    END; +

    Need help


    Concerning


    Wasim Ismail

    Dear Shahzab,

    As the parameters except a report type are the same, you can accomplish this task by comparing the type of report just before Run_product.

    You need to re - write the code as below:

    DECLARE
    al_button NUMBER;
    pl_id PARAMLIST;

    BEGIN
    IF: type = 'A' THEN
    IF: RepType = "1" THEN
    * pl_id: = Get_parameter_list ('repPara'); -create a parameter list *.

    IF this is Id_null (pl_id) THEN
    Destroy_parameter_list (pl_id);
    END IF;

    pl_id: = Create_parameter_list ('repPara');

    Add_parameter (pl_id, 'PARAMFORM', text_parameter, 'NO');
    Add_parameter(pl_id,'style_from',text_parameter,:style_from);
    Add_parameter(pl_id,'style_to',text_parameter,:style_to);
    Add_parameter(pl_id,'date_from',text_parameter,:date_from);
    Add_parameter(pl_id,'date_to',text_parameter,:date_to);
    Add_parameter(pl_id,'category',text_parameter,:Category);

    IF: type = 'A' THEN
    IF: RepType = "1" THEN
    Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Stitching_report.rdf ',)
    asynchronous, NULL to run, the file system, pl_id,);
    ELSIF: Reptype = '2'
    Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Delivery_report.rdf ',)
    asynchronous, NULL to run, the file system, pl_id,);
    END IF;
    END IF;
    END;

    Concerning
    Fassi Fihri

  • Can I run the screensaver with strikes?

    I use Windows 7.  In an earlier version, I was able to launch the screensaver with the keys.  I don't know if I can do it in 7.

    Hi Holmesthecat,

    Try the steps and check them off below if it helps:

    1. create a shortcut to the file on the desktop scrnsave.scr, location: C:\Windows\System32 and then create a keyboard shortcut.

    To create the shortcut:

    Navigate to the location.

    II. right-click on the file

    III. in the list, select send to desktop

    2. create the file keyboard

    To create a keyboard shortcut:

    i. right click on the file

    II. Select Properties

    III. under the keyboard shortcut, type in the character

    You can check the link below:

    Create keyboard shortcuts to open programs: http://windows.microsoft.com/en-US/windows7/Create-keyboard-shortcuts-to-open-programs

    If you have set any particular shortcut to launch the screensaver, then you should be able to launch the screensaver.

    Thank you, and in what concerns:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to run the script with parameters such as alarm action .ps1

    Hello

    I know not how to configure alarms, I know that I can point to monitor cluster for changes (via the GUI), but... I have different groups and I would like to set an alarm by vCenter which monitors cluster for changes. Let's call it "RefreshCapacityInfoOnExternalDB".

    So, lets just say. I would like to run my script whenever a virtual computer is added, Reconfigured or ESX host are removed, added in a Cluster. The alarm would launch the .ps1 script written in turn the ability to update external db cluster info.

    Shortly said: ability to cluster values are changed

    What I need is this: run the script-> CapacityInfoRefresher.ps1 < Cluster_name_where_ReconfigEventsTookPlace >

    I guess that, first I need an environment variable (if it exists) that can be used as a parameter for the < Cluster_name_where_ReconfigEventsTookPlace > placeholder script. Right?

    Chapter 16 of the book of LucD & Friends "PowerCli reference" mentions some environment vars but I'm stuck. Anyone using these options?

    THX

    A.S.

    You can set your alarm on the node above in your vCenter tree, this way it will be active for all collections in the vCenter.

    These alarm environment variables are automatically available for your alarm script when it is triggered.

    These environment variables, you will be able to determine to which cluster the alarm was pulled.

    So I don't think that you need to pass this information as a parameter to the script.

    Perrhaps you could share what exactly alarm you want to set and what looks like the script which should trigger alarm.

    And Yes, I use these environment variables in scripts of alarm

  • Opening files to automatically open and run the program with the input file

    My program has the ability to save and open a text file with a custom extension.  How to make the system in which the program is installed to recognize this file to open the program, AND how I understand the entrance to deposit in my program and load it.

    Thank you

    And now I understand how to debug by going to Run and by changing the arguments of the "command line" it.

    So resolved.

  • Is there an easy way to group the labview run the engine with an exe file?

    I have a LV exe file I want to run on different computers in our lab test at different times. I know one way to do is to download the runtime engine and instrument drivers I need. My question is can I somehow package the file exe, engine performance and drivers so that they could easily be loaded on any PC with windows 7.

    Thank you.

    In the project window, click with the right button on "Peculiarities of building" and select new > Installer.

Maybe you are looking for

  • Can I open pop-ups in a new tab instead of a separate window? How?

    I'm on the customer's Web site, and whenever I click on a 'link' to move to this file, the link opens in a new window (separate and single w/out of the address bar or whatever it is, IE, files and printing options). Just, I want to open in a new tab

  • I can't play youtube videos or access games on facebook

    I can't play youtube videos or access games on facebook and some websites, I get only 1/2 the page. It seems that something is blocking my flash. It says that my flash is updated and also of shockwave. I have included 2 screenshots. I started in safe

  • Can't call my Skype number

    I just added a new number from Skype on my Skype account. It looks like a standard number of Brisbane, but I can't my Amaysim phone ring or my phone fixed Iinet. I was told that it's because it's really a VOIP number. But I can ring my mobile Vodafon

  • Satellite L500-1DT - strip down side of the black screen

    My laptop screen has gone all weird, help! The display seems to have shifted. I have updated all drivers display, made the restoration of the system, checked other ideas screen resolution? The start bar is below the edge of the screen and there is a

  • camera is not detected

    I just bought a dell with windows xp computer and the camera seems to be disconnected. It does not work and if I try to use it in Skype o Messenger it says that it has no camera detected! What can I do?