• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

need help with batch file command

kreactor

Senior member
in the late 80's in pc magazine, there was a user submitted batchfile program that changes behavior based on the variable?

i.e.
batch file was gogopowerrangers.bat

if i type in command prompt

gogopowerrangers nc (it would open norton commander)
gogopowerrangers nsd (it would open norton speed disk)

anyone know what commands i would need to read up on. thanks

edit:change name of the batch file to gogopowerrangers
edit: looks like i'm looking for the command 'shift' and parameters (thanks ken_g6)
 
Last edited:
Your given example sounds a lot like the built-in Windows "start" command.

But if you want to make your own batch file, you probably want to look at:

- Parameters
- If
- And, from that last link, it also looks like parameters can be expanded in a goto statement, making it a lot like a switch statement.
 
You can use "start <path_to_executable> <parameters>" to launch a program from a batch file. Follow it with "exit" to close the batch window
 
Last edited:
Back
Top