0

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
3
  • This may help: stackoverflow.com/questions/72671/… Jun 29, 2018 at 13:44
  • @RuudHelderman thanks for the link it helps
    – Tarun. P
    Jun 29, 2018 at 13:57
  • Your 'starting directory path' has spaces so should be doublequoted, Start /D "D:\Start Backup". If startbackup/run works then it appears that /run is your parameter, so all you need is to append that, with an optional/empty title, e.g Start /D "D:\Start Backup" startbackup /run or Start /D "D:\Start Backup" "" startbackup /run.
    – Compo
    Jun 29, 2018 at 14:55

2 Answers 2

1

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"
0
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.