Computing.Net > Forums > Disk Operating System > bat file to del file after date

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

Reply to Message Icon

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)

:end



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: bat file to del file after date

BAT file to del file > 5days www.computing.net/answers/dos/bat-file-to-del-file-5days/14943.html

how to copy files using date www.computing.net/answers/dos/how-to-copy-files-using-date/12582.html

Time, Date, and User input (bat files) www.computing.net/answers/dos/time-date-and-user-input-bat-files/2335.html