• Create Account

## Passing Parameters to Cmd in Start-Run

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

2 replies to this topic

### #1SpreeTree  Members

396
Like
0Likes
Like

Posted 03 September 2006 - 04:46 AM

Hi, it's been quite a while since I posted on GameDev! :) I am trying to set up a scheduled task in Windows, that opens the command line and carries out a few simple commands. The first thing I want it to do is go to a specific directory, then I want it to run a program in that directory which itself has command line parameters - it needs to be in the dir. as other programs depend on that. In the schedule task, I have set it up to run the cmd.exe program at a given time, but how do I pass in the commands I want it to run? I have tried the following, all to no avail.
cmd --cd:\Projects\Dir --program.exe
cmd cd:\Projects\Dir program.exe --commandOptions

Does anyone have a solution to this? Thanks in advance Spree

### #2Trip99  Members

577
Like
0Likes
Like

Posted 03 September 2006 - 04:48 AM

I have not tried it but you might want to try using 'start' instead of cmd?
------------------------See my games programming site at: www.toymaker.info

### #3SpreeTree  Members

396
Like
0Likes
Like

Posted 03 September 2006 - 04:57 AM

Or I could just use a .bat file.. Doh!

Spree

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.