BAT Script

Soldato
Joined
12 Dec 2003
Posts
2,588
I'm trying to make a bat script that runs 2 ultramon shortcuts at once, this is what I'm trying:

"C:\Program Files\UltraMon\UltraMonShortcuts.exe" /l C:\ProgramData\Realtime Soft\UltraMon\ShellShortcuts\Volume Control.umshortcut

"C:\Program Files\UltraMon\UltraMonShortcuts.exe" /l C:\ProgramData\Realtime Soft\UltraMon\ShellShortcuts\Audio On.umshortcut

This just runs the first shortcut only and leaves the command window open. I tried putting extra quotes around each line, didn't help.
Help please!
 
start "C:\Program Files\UltraMon\UltraMonShortcuts.exe" /l C:\ProgramData\Realtime Soft\UltraMon\ShellShortcuts\Volume Control.umshortcut

start "C:\Program Files\UltraMon\UltraMonShortcuts.exe" /l C:\ProgramData\Realtime Soft\UltraMon\ShellShortcuts\Audio On.umshortcut
 
maybe you need quotes around the 2nd part as well? it shouldn't be a problem with the start command. it's just telling the batch not to wait which is what was happening before. try "start notepad.exe" vs just "notepad.exe" for example....
 
Ah I see what you mean. I tried
start "C:\Program Files\UltraMon\UltraMonShortcuts.exe" "/l C:\ProgramData\Realtime Soft\UltraMon\ShellShortcuts\Volume Control.umshortcut"

start "C:\Program Files\UltraMon\UltraMonShortcuts.exe" "/l C:\ProgramData\Realtime Soft\UltraMon\ShellShortcuts\Audio On.umshortcut"

and

start "C:\Program Files\UltraMon\UltraMonShortcuts.exe" /l "C:\ProgramData\Realtime Soft\UltraMon\ShellShortcuts\Volume Control.umshortcut"

start "C:\Program Files\UltraMon\UltraMonShortcuts.exe" /l "C:\ProgramData\Realtime Soft\UltraMon\ShellShortcuts\Audio On.umshortcut"

but they came up with errors.

edit: Solved it! I moved the /l inside the first quote and put quote around the 2nd string. Thanks for the pointers.
 
Last edited:
Back
Top Bottom