| View previous topic :: View next topic |
| Author |
Message |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Wed Jun 28, 2006 12:42 pm Post subject: Command-line topics |
|
|
This forum is for questions / problems on:
a) Command-line module
b) Task Runner feature
c) Get and Set variables via command-line
d) Get and Set task parameters via command-line |
|
| Back to top |
|
 |
Lidia Lomuto
Joined: 13 Oct 2006 Posts: 3
|
Posted: Fri Oct 13, 2006 11:11 am Post subject: Problem running a batch file |
|
|
Keep getting exit code 1 when trying to run a task that is supposed to execute a batch file. This was set up as a Windows command task. I have read your online documentation and it looks like we've done everything right. What is exit code 1??? Help!  |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Fri Oct 13, 2006 12:33 pm Post subject: |
|
|
The entire list of windows error codes is listed here (large file):
http://www.hiteksoftware.com/knowledge/articles/049.htm
exit code 1 = Incorrect function.
Please paste the output messages if any, from output log and debug log here. They may show something. |
|
| Back to top |
|
 |
Lidia Lomuto
Joined: 13 Oct 2006 Posts: 3
|
Posted: Fri Oct 13, 2006 12:46 pm Post subject: WinCommand line |
|
|
Thanks for replying. Here is what the activity log shows:
Oct 13, 2006 3:22:37 PM Windows Command - WM_In_Out_Bound - Start Instance = 40
Oct 13, 2006 3:22:52 PM Windows Command - WM_In_Out_Bound - End Instance = 40 , Exit Code = 1 , Runtime (ms) = 15032
I don't have anything in the debug log. |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Fri Oct 13, 2006 4:02 pm Post subject: |
|
|
hmm..that does not help too much..
Try putting some echo statements in your batch file at the very top. this way we are sure the batch is being started. The echo statement will only be output in the Command task (but not in WinCommand).
Then try running the same batch file using the Command Task. See if it gives more information.
Also echo statements at different locations will help you debug which line of the batch file your error is occuring. |
|
| Back to top |
|
 |
Lidia Lomuto
Joined: 13 Oct 2006 Posts: 3
|
Posted: Mon Oct 16, 2006 6:36 am Post subject: |
|
|
| We've tried everything...The program fails to launch the batch file as expected... |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Mon Oct 16, 2006 8:32 am Post subject: |
|
|
Create a simple test batch file with the following code:
echo command task launched batch file
Place this test batch file in the same folder as your batch file. Then run it using the command task. If you see nothing in the command tasks output log or task log, then you are using the wrong commandline or working directory.
what is the commandline and working directory you are using? |
|
| Back to top |
|
 |
|