Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home
General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2
Drivers
Driver Scan
Driver Forum
Software
Automatic Updates
BIOS Updates
My Computing.Net
Solution Center
Free IT eBook
Howtos
Site Search
Message Find
RSS Feeds
Install Guides
Data Recovery
About
Home
Subject: Checking file size in NT (batch)
Original Message
Name: fruitgull
Date: August 2, 2007 at 05:26:20 Pacific
Subject: Checking file size in NT (batch)OS: NT 4CPU/Ram: n/aModel/Manufacturer: n/a
Comment: In XP this works "if %~z1 GTR 1000 ..." But this doesn't work i NT. Does anyone have any idea how to get it to work in NT?
Report Offensive Message For Removal
Response Number 1
Name: Razor2.3
Date: August 2, 2007 at 05:48:18 Pacific
Subject: Checking file size in NT (batch)
Reply: (edit )Actually, it wouldn't work in XP. You forgot the /I .
Report Offensive Follow Up For Removal
Response Number 2
Name: Mechanix2Go
Date: August 2, 2007 at 06:50:33 Pacific
Subject: Checking file size in NT (batch)
Reply: (edit )#1,I dunno /L bit this works in NT5: ======================= @echo off setLocal EnableDelayedExpansion echo %~z1 if %~z1 GTR 10 echo biggger ========================
===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
Response Number 3
Name: fruitgull
Date: August 3, 2007 at 00:37:35 Pacific
Subject: Checking file size in NT (batch)
Reply: (edit )Thanks! But it wont work in NT 4. This is returned:Invalid parameter to SETLOCAL command The following usage of the path operator in batch-parameter substitution is invalid: %~z1
For valid formats type CALL /? or FOR /?
Report Offensive Follow Up For Removal
Response Number 4
Name: Mechanix2Go
Date: August 3, 2007 at 02:07:20 Pacific
Subject: Checking file size in NT (batch)
Reply: (edit )======================= @echo off setLocal echo %~z1 if %~z1 GTR 10 echo biggger ========================
===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
Response Number 5
Name: fruitgull
Date: August 3, 2007 at 02:35:20 Pacific
Subject: Checking file size in NT (batch)
Reply: (edit )Thanks again :)That returned:
The following usage of the path operator in batch-parameter substitution is invalid: %~z1
Report Offensive Follow Up For Removal
Response Number 6
Name: Mechanix2Go
Date: August 3, 2007 at 02:41:57 Pacific
Subject: Checking file size in NT (batch)
Reply: (edit )I'm not running NT4. I guess that ~Z won't flyYou may need to use DIR and chop out the size. Before you go to the trouble, check and see if GTR works.
===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
Response Number 7
Name: Mechanix2Go
Date: August 29, 2007 at 14:22:17 Pacific
Subject: Checking file size in NT (batch)
Reply: (edit )I guess it wasn't urgent.
===================================== If at first you don't succeed, you're about average.M2
Report Offensive Follow Up For Removal
Use following form to reply to current message: