redirect bat commands to cmd window

Home Forums Scripting DOS Command Shell redirect bat commands to cmd window

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    shmengie
    Member
    #153280

    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)

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.