Home / Microsoft / Microsoft DOS / %~1, %~f1, %~d1 hellp
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: %~1, %~f1, %~d1 hellp  (Read 2106 times)
fruitcake1
Guest
« on: July 13, 2005, 06:13:15 AM »

does anyone know what these codes mean:
Code: [Select]
%~1, %~f1, %~d1, %~p1, %~t1, %~$PATH:1
, %~n1, %~x1,  %~s1, %~a1, %~z1, %~dp1, %~nx1
%~dp$PATH:1, %~ftza1


I found it on http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/ServerHelp/97731e49-ffa3-4918-87fb-5318743f2932.mspx  but I Don't understand them at all??!!???
IP logged
Sidewinder
Guru



Thanked: 97
Posts: 4,340

Experience: Familiar
OS: Windows 7

« Reply #1 on: July 13, 2005, 07:53:20 AM »

Those cryptic symbols are enhanced modifiers for referencing batch variables. Microsoft explained their use in the link you provided so there is no need to repeat it. Generally they allow you to create substrings of defined strings (ie: getting the file extension from a full file name).

While they have their uses, they tend to reduce the readability of batch code. WinScript is still a better way to go.

I think the're only valid on XP and 2003 Server.

Hope this helps. 8)
« Last Edit: July 13, 2005, 07:57:02 AM by Sidewinder » IP logged

If you don't know where you are going, any road will get you there

                                                                            -Lewis Carroll
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / %~1, %~f1, %~d1 hellp « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.569 seconds with 20 queries.