Page 1 of 1

How to open a file on a network drive using batch file?

Posted: 19 Jul 2012 02:00
by data808
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.

Re: How to open a file on a network drive using batch file?

Posted: 19 Jul 2012 06:20
by Squashman
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?

Posted: 19 Jul 2012 10:32
by foxidrive
You need the correct path, and the two empty quotes at the start.

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"