How can I run a RIGHT CLICK OPTION of a file in a Batch file?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
maherodu
Posts: 1
Joined: 27 Sep 2016 17:36

How can I run a RIGHT CLICK OPTION of a file in a Batch file?

#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
Image

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

Re: How can I run a RIGHT CLICK OPTION of a file in a Batch file?

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

Post Reply