How to pass more than 9 parameters to batch file

iAmLearning

How can I pass more than nine parameters to bach file.
I tried another SO question How do you utilize more than 9 arguments when calling a label in a CMD batch-script? but not working for me.

I am trying to give the runtime values of a url kept inside batch.
My batch:

start iexplore http://example.com?firstName=%1^&middleName=%2^&lastName=%3^&country=%4^&address=%5^&address2=%6^&address3=%7^&mobileNo=%8^&landlineNo=%9SHIFT SHIFT SHIFT SHIFT SHIFT SHIFT SHIFT SHIFT ^&emailAddress=%1^&hobby1=%2^&hobby2=%3^&hobby3=%4^&hobby4=%5^&hobby5=%6

When using It is taking the previous values of %1, %2, %3,.....etc and the values of 10th,11th,12th.... parameters

Please help !

basin

save the first nine args in a variable. THEN call shift multiple times and only then use the rest:

set "v=http://example.com?firstName=%1&middleName=%2&lastName=%3&country=%4&address=%5&address2=%6&address3=%7&mobileNo=%8&landlineNo=%9"
shift
shift
shift
shift
shift
shift
shift
shift
shift
start iexplore %v%&emailAddress=%1&hobby1=%2&hobby2=%3&hobby3=%4&hobby4=%5&hobby5=%6

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to store more than 9 parameters using windows Batch

From Dev

How to pass parameters to batch file using QTP?

From Dev

How to pass multiple parameters in CMD to batch file

From Dev

How to pass multiple parameters to a Windows batch file or batch function?

From Dev

Pass parameters with apostrophs to a batch file

From Dev

How to pass command line specific parameters to a batch file?

From Dev

How to pass parameters to a batch file using c#

From Dev

How to Pass Command Line Parameters with space in Batch File

From Dev

How to pass parameters to a batch file using c#

From Dev

How to Pass parameters to batch file using Echo by java

From Dev

How to pass parameters to batch in powershell

From Dev

Pass parameters in batch file from powershell

From Dev

pass parameters to batch file from vb script

From Dev

Pass parameters in batch file from powershell

From Dev

sbt how to pass command line parameters when more than one executable

From Dev

How to pass parameters in batch file and zip the file using 7z.exe?

From Dev

How to pass parameter in batch file

From Dev

pass and retrieve parameters from more than two activities

From Dev

How to pass more than 3 arguments to getattr?

From Dev

How to pass more than one arguments with docopt

From Dev

How to pass more parameters to spring validate method

From Dev

How to pass more parameters for socket.on()

From Dev

How to pass more parameters for socket.on()

From Dev

Batch file search & create with more than one word

From Dev

Need to pass parameters with spaces to a command wrapped in batch file from java

From Dev

How to pass variables from one batch file to another batch file?

From Dev

How to create a batch file that takes optional parameters

From Dev

How to check if a batch file has ANY parameters?

From Dev

How to create a batch file that starts an executable with parameters

Related Related

  1. 1

    How to store more than 9 parameters using windows Batch

  2. 2

    How to pass parameters to batch file using QTP?

  3. 3

    How to pass multiple parameters in CMD to batch file

  4. 4

    How to pass multiple parameters to a Windows batch file or batch function?

  5. 5

    Pass parameters with apostrophs to a batch file

  6. 6

    How to pass command line specific parameters to a batch file?

  7. 7

    How to pass parameters to a batch file using c#

  8. 8

    How to Pass Command Line Parameters with space in Batch File

  9. 9

    How to pass parameters to a batch file using c#

  10. 10

    How to Pass parameters to batch file using Echo by java

  11. 11

    How to pass parameters to batch in powershell

  12. 12

    Pass parameters in batch file from powershell

  13. 13

    pass parameters to batch file from vb script

  14. 14

    Pass parameters in batch file from powershell

  15. 15

    sbt how to pass command line parameters when more than one executable

  16. 16

    How to pass parameters in batch file and zip the file using 7z.exe?

  17. 17

    How to pass parameter in batch file

  18. 18

    pass and retrieve parameters from more than two activities

  19. 19

    How to pass more than 3 arguments to getattr?

  20. 20

    How to pass more than one arguments with docopt

  21. 21

    How to pass more parameters to spring validate method

  22. 22

    How to pass more parameters for socket.on()

  23. 23

    How to pass more parameters for socket.on()

  24. 24

    Batch file search & create with more than one word

  25. 25

    Need to pass parameters with spaces to a command wrapped in batch file from java

  26. 26

    How to pass variables from one batch file to another batch file?

  27. 27

    How to create a batch file that takes optional parameters

  28. 28

    How to check if a batch file has ANY parameters?

  29. 29

    How to create a batch file that starts an executable with parameters

HotTag

Archive