Tech Support Guy banner
Status
Not open for further replies.
1 - 12 of 12 Posts

· Retired Moderator
Joined
·
110,551 Posts
%SystemRoot%\explorer.exe "folder path"

where "folder path" is the complete folder path in quotes.
 

· Retired Trusted Advisor
Joined
·
9,247 Posts
lightnb said:
I have:

But all it does is open a command prompt, at the folder where the bat file is located...
Are you trying to run a batch file from within another batch file? I recently had a problem with this until I remembered to CALL the second batch file from within the first.
 

· Retired Moderator
Joined
·
110,551 Posts
What do you expect it to do? Are you trying to launch the application associated with the file extension .MCD? You can invoke it with the file as a parameter on the command line in many cases.
 

· Registered
Joined
·
796 Posts
Discussion Starter · #8 ·
It should open the file using the default program (Vectorworks).

start ../include/SP/ELM/ElementalPaperwork/Lighting/ELM_plot.mcd
works, because there are no spaces.

But if the folder name is "Elemental Paperwork" not "ElementalPaperwork" the space in the folder name causes the command to fail.

Is there a way to make it work with spaces in the folder names?
 

· Retired Moderator
Joined
·
110,551 Posts
Frank4d said:
What happens if you enclose the entire drive/path/filename in quotes? It should work.
You mean like I suggested in post #4? :D
 

· Retired Trusted Advisor
Joined
·
9,247 Posts
Move the first quote mark.
Use this: start .."/include/SP/ELM/Elemental Paperwork/Lighting/ELM_plot.mcd"
Not this: start "../include/SP/ELM/Elemental Paperwork/Lighting/ELM_plot.mcd"
 
1 - 12 of 12 Posts
Status
Not open for further replies.
Top