Command line and keyboard apologist corner

2007-08-09

Getting the file length in the Windows XP/W2K batch-file

for %%I in (c:\autoexec.bat) do set SZ=%%~zI

echo %SZ%

at 14:59 0 comments

Labels: command-line, computers, windows

Getting the current folder name in the Windows XP/W2K batch-file

for %%I in (.) do set CWD=%%~fI

echo %CWD

at 14:54 0 comments

Labels: command-line, computers, windows

Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2008 (1)
    • ►  September (1)
  • ▼  2007 (12)
    • ►  October (2)
    • ►  September (3)
    • ▼  August (2)
      • Getting the file length in the Windows XP/W2K batc...
      • Getting the current folder name in the Windows XP/...
    • ►  June (5)

About Me

Александр
View my complete profile