If you are getting trouble to pass more than 9 character in batch file. dont worried about it. follow this example and you are done:
@Echo *** Example to pass more than 9 parameter in batch file::
SET batfilepath=%1
SET destpath=%2
SET psexepath=%3
SET destbatfilename=%4
SET sspmdfpath=%5
SET sspmovedestmdfpath=%6
SET sspldfpath=%7
SET sspmovedestldfpath=%8
SET sspsearchmdfpath=%9
SHIFT
SHIFT
SHIFT
SHIFT
SHIFT
SHIFT
SHIFT
SHIFT
SHIFT
SET sspsearchmovedestmdfpath="%~1"
SET sspsearchldfpath="%~2"
you need to write 9 times SHIFT in batch file and than pass 10 parameter as shown upper side. that consider as a 10th parameter.
cheers.......
No comments:
Post a Comment