start a file using a program

Hewlett-packard / Rc659aa-aba a1632x
August 21, 2009 at 16:58:38
Specs: Microsoft Windows Vista Home Premium, 2 GHz / 2045 MB
Hi
Is there any command that can start a file using a certain program that
isnt the default program?

for example, run a .txt file with "winword.exe" (microsoft word)


See More: start a file using a program

Report •


#1
August 21, 2009 at 17:10:53
start "" "p:\ath\to\program\winword.exe" "p:\ath\to\sometextfile.txt"

If the program or text file is in the current directory then you can leave out the whole path and just use the file name. If the program resides in a %path% directory the the path to the executable can also be left out.


Report •

#2
August 21, 2009 at 17:58:39
thanks! thats just what i needed

Report •

Related Solutions


Ask Question