-
-
Save beppe9000/f4442a6375cde91b3a94e1db3b14cb66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: http://weblogs.asp.net/jgalloway/archive/2006/11/20/top-10-dos-batch-tips-yes-dos-batch.aspx | |
echo %%~1 = %~1 | |
echo %%~f1 = %~f1 | |
echo %%~d1 = %~d1 | |
echo %%~p1 = %~p1 | |
echo %%~n1 = %~n1 | |
echo %%~x1 = %~x1 | |
echo %%~s1 = %~s1 | |
echo %%~a1 = %~a1 | |
echo %%~t1 = %~t1 | |
echo %%~z1 = %~z1 | |
echo %%~$PATHATH:1 = %~$PATHATH:1 | |
echo %%~dp1 = %~dp1 | |
echo %%~nx1 = %~nx1 | |
echo %%~dp$PATH:1 = %~dp$PATH:1 | |
echo %%~ftza1 = %~ftza1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Temp>batchparams.bat c:\windows\notepad.exe | |
%~1 = c:\windows\notepad.exe | |
%~f1 = c:\WINDOWS\NOTEPAD.EXE | |
%~d1 = c: | |
%~p1 = \WINDOWS\ | |
%~n1 = NOTEPAD | |
%~x1 = .EXE | |
%~s1 = c:\WINDOWS\NOTEPAD.EXE | |
%~a1 = --a------ | |
%~t1 = 08/25/2005 01:50 AM | |
%~z1 = 17920 | |
%~$PATHATH:1 = | |
%~dp1 = c:\WINDOWS\ | |
%~nx1 = NOTEPAD.EXE | |
%~dp$PATH:1 = c:\WINDOWS\ | |
%~ftza1 = --a------ 08/25/2005 01:50 AM 17920 c:\WINDOWS\NOTEPAD.EXE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment