Page 1 of 1
about simple run cmd
Posted: 24 Oct 2018 09:06
by swan_x
hi, i want run D:\apps\PotPlayer\KillPot64.exe through cmd.... but with script:
run "cmd D:\apps\PotPlayer\KillPot64.exe";
don't work...! what is correct syntax??
Re: about simple run cmd
Posted: 24 Oct 2018 09:13
by jupe
Code: Select all
run "D:\apps\PotPlayer\KillPot64.exe";
I feel like variations of this question have been asked and answered for you multiple times, for instance:
viewtopic.php?f=7&t=19045#p159746
Re: about simple run cmd
Posted: 24 Oct 2018 09:42
by swan_x
yes ok, sorry... but last time it's for taskill process...!
and run ".....exe" from xy it's the same of run cmd ....exe???
Re: about simple run cmd
Posted: 24 Oct 2018 09:47
by swan_x
jupe wrote:Code: Select all
run "D:\apps\PotPlayer\KillPot64.exe";
yes I had thought this too... but i want run exe through cmd...
Re: about simple run cmd
Posted: 24 Oct 2018 09:50
by jupe
Thats why I linked to the other thread, in which you were shown how to run apps through cmd.
I don't understand what you are asking, cmd is only needed for windows internal cmds if that's what you are trying to ask.
See how this:
Code: Select all
run """cmd"" /c TASKKILL /IM adb.exe /f";
could become this?
Code: Select all
run """cmd"" /c D:\apps\PotPlayer\KillPot64.exe";
if that is what you are wanting to do, but is is unnecessary.
Re: about simple run cmd
Posted: 24 Oct 2018 09:55
by swan_x
run "D:\apps\PotPlayer\KillPot64.exe";
it's the same of start - cmd - D:\apps\PotPlayer\KillPot64.exe ??
Re: about simple run cmd
Posted: 25 Oct 2018 09:17
by swan_x
after various research (since the forum was under maintenance) this was what i wanted:
run "cmd /c ""D:\apps\PotPlayer\KillPot64.exe /F"""