redirect bat commands to cmd window
- This topic has 2 replies, 2 voices, and was last updated 9 years, 11 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Home › Forums › Scripting › DOS Command Shell › redirect bat commands to cmd window
i can’t believe i’ve never done this before, and that i can’t figure it out. i have a batch file on my desktop called audit.bat, and this is it:cmd
cd
cd xampphtdocsopenauditscripts
cscript audit.vbs[/CODE]
simple enough. but, after the cmd command, none of the text is redirecting to the cmd window. so, i rem’d out the cmd command and tried running the bat file from the cmd window, with no luck. (i found a reference to the stdout command which looks like it’s supposed to redirect the text to the cmd window, but that didn’t work, either).
this has to be so simple and obvious that i’m just overlooking it. can someone please advise?
thx!
(ps, i’m running this on w7 pro, if it makes a difference)[CODE]cmd
cd
cd xampphtdocsopenauditscripts
cscript audit.vbs[/CODE]
simple enough. but, after the cmd command, none of the text is redirecting to the cmd window. so, i rem’d out the cmd command and tried running the bat file from the cmd window, with no luck. (i found a reference to the stdout command which looks like it’s supposed to redirect the text to the cmd window, but that didn’t work, either).
this has to be so simple and obvious that i’m just overlooking it. can someone please advise?
thx!
(ps, i’m running this on w7 pro, if it makes a difference)
You must be logged in to reply to this topic.
Find out more about our cookie policy here.