![]() |
|
#1
|
||||
|
||||
|
Hello there
Just tinkering with making .bat files and would be interested in knowing if I'm doing something wrong here - This works: echo off start /d "C: \Program files\ccleaner (M)" ccleaner But this doesn't work: echo off start /d "C: \Program files\opera 10 preview" opera (makes no difference if I kill the spaces between opera-10-preview, or add .exe to opera) Grateful for any help - thanks in advance. philby
__________________
Sandboxie + Macrium on Windows 8 Pro 64 |
|
#2
|
||||
|
||||
|
Quote:
start /d "C: \Program files\opera 10 preview\opera.exe" Panagiotis |
|
#3
|
||||
|
||||
|
start /d "C: \Program files\opera 10 preview\opera.exe"
This doesn't work either - I just get a quick flash of the command window. Plus, the ccleaner .bat works without the .exe extension... Thanks for response. philby
__________________
Sandboxie + Macrium on Windows 8 Pro 64 |
|
#4
|
|||
|
|||
|
philby,
Try these lines without start.... Quote:
Did you mean to put a space after C: Last edited by Brian K : March 28th, 2009 at 04:47 AM. |
|
#5
|
||||
|
||||
|
Yes, thank you, that was it - no space after C: and it works.
Now I don't understand why the ccleaner .bat works with the space after c: What's that about? I would have imagined either there must be a space or there must not be. Also, is there a way of preventing the command window from flashing up when the bat shortcut is hit (without TP s/w)? Thanks again in advance philby
__________________
Sandboxie + Macrium on Windows 8 Pro 64 |
|
#6
|
|||
|
|||
|
Try this...
Quote:
The second line has wrapped. There are only 3 lines here. The second line starts with "if" and finishes with "EOF" Try this for ccleaner Quote:
|
| « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|
|