Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMS from logon script

Status
Not open for further replies.

cryptog

Technical User
Dec 18, 2002
7
0
0
GB
can anyone tell me why the SMSLS batch file is called for as follows
call %0\..\smsls.bat

why the use of %0\..

 
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:
%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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top