hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Command-line topics

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Command tasks and commandline
View previous topic :: View next topic  
Author Message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Wed Jun 28, 2006 12:42 pm    Post subject: Command-line topics Reply with quote

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
View user's profile Send private message
Lidia Lomuto



Joined: 13 Oct 2006
Posts: 3

PostPosted: Fri Oct 13, 2006 11:11 am    Post subject: Problem running a batch file Reply with quote

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! Sad
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Fri Oct 13, 2006 12:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lidia Lomuto



Joined: 13 Oct 2006
Posts: 3

PostPosted: Fri Oct 13, 2006 12:46 pm    Post subject: WinCommand line Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Fri Oct 13, 2006 4:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lidia Lomuto



Joined: 13 Oct 2006
Posts: 3

PostPosted: Mon Oct 16, 2006 6:36 am    Post subject: Reply with quote

We've tried everything...The program fails to launch the batch file as expected...
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Mon Oct 16, 2006 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Command tasks and commandline All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group