computing
  • 0

Passing SPACE Key To a Batch File

  • 0

Hi,

I start a program using a batch file. The batch file opens the program, but the program starts running only when the user presses the SPACE key. I am not sure how to incorporate the SPACE key argument in the following batch command.

start /w /max “” “C:\Users\Administrator\Documents\Projects\Rpractice.exe

Thanks.

Share

1 Answer

  1. have you what MU’s said ?

    or try this from a batch file.

    @echo off
    echo Set WshShell = WScript.CreateObject(“WScript.Shell”) >temp.vbs
    echo wshshell.run “C:\Users\Administrator\Documents\Projects\Rpractice.exe ” >>temp.vbs
    echo wscript.sleep 1000 >>temp.vbs
    echo wshshell.sendkeys ” “>>temp.vbs
    cscript /nologo temp.vbs

    Subhash Chandra.

    • 0