| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
%%~Za wierdness
|
Original Message
|
Name: Mechanix2Go
Date: December 28, 2007 at 04:37:14 Pacific
Subject: %%~Za wierdnessOS: w2k sp3CPU/Ram: PIII 933/256MBModel/Manufacturer: brand x |
Comment: The first section works as expected. In the second FOR the %%~Za fails. Any ideas? TIA ::== for /f "tokens=* delims= " %%a in ('dir/b') do ( echo %%~Za %%~Na %%a %%~Da ) for /f "tokens=* delims= " %%a in ('dir/b ..\*.txt') do ( echo %%~Za %%~Na %%a %%~Da )
===================================== If at first you don't succeed, you're about average.M2
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: IVO
Date: December 28, 2007 at 05:13:41 Pacific
|
Reply: (edit)The %%~Za in tbe second For fails because the z modifier works if and only if your current directory is the same holding the files you are browsing.
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home