Hi folks, i want to understand some differences between Switches and Parameters. I usually make batch files for compressing files into rar and zip
and opening different application to run. It works fine. But lately when i dig more about making batch file, i come across this term called Parameters.
I hardly do use it and i want to know from some experts what does it differentiates from Switches.
I google and try to get some definitive explanation but there are tonnes of it and i am not able to put one simple definition in my head.
I found one site that explains Parameters:Command line parameters
What do i understand about %0, and %1 till %9. How does it can be applied in batch file.
Any suggestion from experts would be greatful.
and opening different application to run. It works fine. But lately when i dig more about making batch file, i come across this term called Parameters.
I hardly do use it and i want to know from some experts what does it differentiates from Switches.
I google and try to get some definitive explanation but there are tonnes of it and i am not able to put one simple definition in my head.
I found one site that explains Parameters:Command line parameters
Quote
Batch files can only handle parameters %0 to %9
%0 is the program name as it was called,
%1 is the first command line parameter,
%2 is the second command line parameter,
and so on till %9.
What do i understand about %0, and %1 till %9. How does it can be applied in batch file.
Any suggestion from experts would be greatful.






