about simple run cmd

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

about simple run cmd

Post 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??

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: about simple run cmd

Post 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

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: about simple run cmd

Post 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???

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: about simple run cmd

Post 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...

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: about simple run cmd

Post 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.

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: about simple run cmd

Post by swan_x »

run "D:\apps\PotPlayer\KillPot64.exe";

it's the same of start - cmd - D:\apps\PotPlayer\KillPot64.exe ??

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: about simple run cmd

Post 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"""

Post Reply