Right now I have an excel file that I want to open with a batch file. The excel file name is:
JK Counter Log.xls
I already tried:
start /d "K: blahblahblah" JK Counter Log.xls
and
start EXCEL.EXE "K: blahblahblah\JK Counter Log.xls"
says something like it can't find "JK" make sure you are typing it out correctly.
any help will be appreciated. thanks.
How to open a file on a network drive using batch file?
Moderator: DosItHelp
Re: How to open a file on a network drive using batch file?
Might help if you put a Back Slash after your drive letter.
Re: How to open a file on a network drive using batch file?
You need the correct path, and the two empty quotes at the start.
This may also work.
Code: Select all
start "" "K:\blah1\blah2\blah3\JK Counter Log.xls"
This may also work.
Code: Select all
start "" "\\server\share\JK Counter Log.xls"