Tarun. P
Tarun. P

Reputation: 442

Executing .exe using CMD Start with Parameter

I have created a executable file lets say 'Startbackup.exe' and it is located in 'D:\Start Backup\Startbackup.exe'

What i am trying to acheive is to create a bactch file to start this .Exe uisng defualt paramter . My parameter is 'Startbackup/run'.

I tried following command in cmd and it works.

enter image description here

How can i create a .bat file? I have tried following but its not working

Start /D D:\Start Backup\ Startbackup Parameter Startbackup/run

Upvotes: 0

Views: 22373

Answers (2)

Tarun. P
Tarun. P

Reputation: 442

I got it working now.

start "" "D:\Start Backup\StartBackup.exe" parameter StartBackup/Start

I dont have any space in my arguments so this solution works.

Upvotes: 1

J. Doe
J. Doe

Reputation: 43

That is because the first parameter of start is the name, and the second one is the path to the executable.

Try this:

Start "" "D:\Start Backup\StartBackup.exe"

Upvotes: 1

Related Questions