質問

Can someone help me with this command? I basically want PSEXEC to execute a batch file in minimised mode, then shut it down after 100 seconds. I've had complaints that PSEXEC is too obtrusive to the remote users. They want it hidden and to close down itself.

Currently I have this to start PSEXEC and call the batch file:

  psexec -i -s \\YOURPC \\YOURPC\alert.cmd

alert.cmd is a follows:

start /min cmd /k "echo Hello world" /timeout /t 100

This works without time out, but I can't figure out how to get the timer working on the alert.cmd

Thanks!

役に立ちましたか?

解決

start /min cmd /k "echo Hello world && timeout /t 100"
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top