dos - How can you open a non-specific file using a program called through a batch file? -
i can find plenty of answers on net how open specific file, e.g. http://answers.yahoo.com/question/index?qid=20080102230630aafu5df
however, need provide way of opening non-specific file in programme called batch file.
to explain, here example. user has folder 100 files in .xyz extension. wants able double click on file , open in "xyz viewer," run xyz viewer needs run batch file alters registry , runs actual xyz viewer .exe.
if select batch file default programme via "always utilize selected programme open kind of file" tickbox, open program, without using standard windows function of opening file instigating running of program.
is there way run programme through batch file , both run programme , open whichever file instigated running of program?
i suspect impossible, suggestions gratefully received!
cheers.
edit: programme back upwards opening file placed argument it.
my code is reg import c:\regent\31.2.03.reg start c:\program\program.exe
does programme back upwards opening file placed argument it? in illustration linked, mspaint opens first parameter given it.
if batch file isn't doing this, have edit contain batch parameter(s).
see http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true fuller documentation on it.
essentially want add together %1 somewhere like:
reg import c:\regent\31.2.03.reg start c:\program\program.exe %1
batch-file dos
No comments:
Post a Comment