Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
maherodu
- Posts: 1
- Joined: 27 Sep 2016 17:36
#1
Post
by maherodu » 27 Sep 2016 17:45
Good evening!
I must run a file, but not the "first option". I must programm the batch file "right click" and "choose" the third option the file.
Check the print out

If I write just "C:\ATP\atpdraw\project\work\testematlab.atp" in the batch file, the first option is chosen.
Is there a way to choose the third one? (Run ATP)
Thank you!
-
foxidrive
- Expert
- Posts: 6031
- Joined: 10 Feb 2012 02:20
#2
Post
by foxidrive » 27 Sep 2016 18:37
If the filetype is registered to a program then that program will launch with the file when using this command.
Code: Select all
start "" "C:\ATP\atpdraw\project\work\testematlab.atp"
This is the kind of command line using a program that you can try too.
Code: Select all
start "" "c:\program location\folder\program.exe" "C:\ATP\atpdraw\project\work\testematlab.atp"