|
Answer» Hey all, Ok i'm only new to scripting of any kind (i found out about creating .bat files yesterday). Simply enough i want to create a batch that opens the programs that i use regularly and also some websites.
Problem is every time i have TRIED i get an error stating that 'such and such cannot be found' one of the programs is in the 'Program Files' section of the computer and i think it is because the batch file can't read the space.
Is there a special COMMAND to enter instead of pressing spacebar?
I'm running Windows Xp HOME Edition
Also i am using the start... command to OPEN the program Should i be using dir... or run... or something else?Values with embedded spaces need to be quoted.
ex. "c:\Program Files"
Good luck. So it's like:
start "c:\docume~1\username\desktop\file.exe" or start "www.google.com" also works with websites.thankyou sidewinder and carbon Dudeoxide ok, i tried what you suggested and it opens the command prompt under the programs name. Is there a way to make it open the program itself?You need to enter the entire path to the file and the filename itself.
Something like this perhaps:
C:\Program Files\Windows NT\Pinball\pinball.exe
An easier way is to use Windows EXPLORER and launch the programs from there.
Good luck.
|