Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: %~1, %~f1, %~d1 hellp  (Read 5112 times)

0 Members and 1 Guest are viewing this topic.

fruitcake1

  • Guest
%~1, %~f1, %~d1 hellp
« 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??!!???

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: %~1, %~f1, %~d1 hellp
« 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 »
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein