Jan 22, 2003 #1 cryptog Technical User Dec 18, 2002 7 GB can anyone tell me why the SMSLS batch file is called for as follows call %0\..\smsls.bat why the use of %0\..
can anyone tell me why the SMSLS batch file is called for as follows call %0\..\smsls.bat why the use of %0\..
Jan 23, 2003 #2 browolf Programmer Dec 18, 2001 442 GB it something to do with the fact....um... i remember that %0 from when we tried sms a few years ago. looking it up.... got it source:http://www.ss64.com/ntsyntax/parameters.html %0 - the Batch Script itself When a CMD script is run from a network share, it may be accessed directly from the UNC share or from a mapped drive. You can get the pathname of the .CMD script itself with %0 You cannot set the current directory to a UNC drive but you can refer to other files in the same folder as the batch script by using this syntax: CALL %0\..\SecondBatch.cmd =============== Security Forums http://www.security-forums.com Upvote 0 Downvote
it something to do with the fact....um... i remember that %0 from when we tried sms a few years ago. looking it up.... got it source:http://www.ss64.com/ntsyntax/parameters.html %0 - the Batch Script itself When a CMD script is run from a network share, it may be accessed directly from the UNC share or from a mapped drive. You can get the pathname of the .CMD script itself with %0 You cannot set the current directory to a UNC drive but you can refer to other files in the same folder as the batch script by using this syntax: CALL %0\..\SecondBatch.cmd =============== Security Forums http://www.security-forums.com