DosTips.com

A Forum all about DOS Batch
It is currently 09 Feb 2016 03:45

All times are UTC-06:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 19 Jul 2012 02:00 
Offline

Joined: 19 Jul 2012 01:49
Posts: 5
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.


Top
   
PostPosted: 19 Jul 2012 06:20 
Offline

Joined: 23 Dec 2011 13:59
Posts: 2979
Might help if you put a Back Slash after your drive letter.


Top
   
PostPosted: 19 Jul 2012 10:32 
Offline

Joined: 10 Feb 2012 02:20
Posts: 5355
You need the correct path, and the two empty quotes at the start.

Code:
start "" "K:\blah1\blah2\blah3\JK Counter Log.xls"


This may also work.

Code:
start "" "\\server\share\JK Counter Log.xls"


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited