Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
bat file to del file after date
Name: Bryan Date: September 24, 2003 at 07:23:03 Pacific OS: any CPU/Ram: any
Comment:
I start a program with a batch file. I want to insert an if then command, something like
if date > 11-31-03 then del c:\filename.exe goto end end if (normal bat file starting)
Name: Nathan Date: September 24, 2003 at 15:48:24 Pacific
Reply:
there is no if/then statement. only an if statement. i would do a little more research on batch files before asking. or maybe just put some more info into question.
0
Response Number 2
Name: nathan Date: September 24, 2003 at 15:50:13 Pacific
Reply:
also i theres no less then or greater then operators. i would stick to coding. something like perl will get the job done clean and tidy.
Summary: hi, at http://plop.at under downloads there is an example how to delete files older than some days 3 files needed for that datetime.com, lsfdt.com and delflist.com, those files are there too ...
Summary: To copy the files with a required date from a folder to a new one use the following batch, where leaving blank the last parameter means to copy the current date files: @Echo Off :: CDAT.BAT Syntax: CD...
Summary: I'm writing a bat file as an assignment at Tech (college) and i need to know this (please!) * how do you display the time, or date without it promting for a new time/date? * I need to be able to allow...