Open an executable file using VB or CMD

2

How to open a file of any extension, such as - Paçoca.legalcara in an executable like - algo.exe using CMD or VB ?

Note: The path must be relative, which means that everyone is in the same folder

    
asked by anonymous 26.06.2015 / 01:27

1 answer

2

In VB you can use the arguments, for example call the notepad:

System.Diagnostics.Process.Start("notepad.exe", "c:\arquivo.txt")

And in cmd it would look something like:

start "notepad.exe" "c:\arquivo.txt"
    
26.06.2015 / 01:43