Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9224

write .bat file and execute command based on input - windows

$
0
0

I have written a .bat file in windows. Which launch these url in browser

do some other taskSTART www.google.comSTART www.microsoft.comSTART www.apple.com

But the one I wrote is static which execute all together.

I would like to make it accept input and execute that command based on input.

For example

input 1 launch only www.google.com

input 2 launch only www.microsoft.com

input 3 launch only www.apple.com

input 4 do some other task or run a command

Also looking to open launch .bat file with associated keyboard shortcut.

if it matter I am gonna use this on Windows 10

Any help would be appreciated.

Thanks


Viewing all articles
Browse latest Browse all 9224

Trending Articles