WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Multiple subtasks job to run a cmd file (Read 255 times)
IPA
YaBB Newbies
*
Offline



Posts: 8
Multiple subtasks job to run a cmd file
Mar 16th, 2017 at 11:19pm
 
How do I call a CMD rather than a EXE file from a subtask?
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Multiple subtasks job to run a cmd file
Reply #1 - Mar 17th, 2017 at 9:01am
 
Hello IPA,

The "run a bat file" task is not (yet) supported directly by the subtask plugin.

There is an easy work-around...
Create a subtask using the "Run any program" plugin: http://www.watchdirectory.net/wdhelp/plugins/wdopAutoLaunch.html

Let it start cmd.exe and as parameters use something like
/C "C:\Scripts\YourScript.cmd"

The same environment variables are available to your cmd file as when you use the "run any bat file", see http://www.watchdirectory.net/wdhelp/plugins/wdopAutoRunBatEnv.html
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1