-
April 8th, 2009, 05:28 AM #1Junior Member
- Join Date
- Apr 2009
- Posts
- 1
exporting results from batch file
Hi there, I am trying to achieve a pretty simple task here, i'm just cant seem to think how to do what i want properly though...
I currently have a batch file that looks like the following:
@echo off
color 91
DEL /F file.exe
DEL /F file.exe
DEL /F file.exe >log.txt
basicly it attempts to delete the same file a few times in a row.
I've tried to make it so it creates a log with the results, but it didnt seem to work...
I would like to have it check for when it has success, then creates a log with the "file has been successfully deleted" message that comes up after it, then have it exit the batch file.
Then If it does not have success by the end of the batch, I want it to create a log with the error.
Is there anyone who has experience in batch file creation that could help me out here?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Batch file to copy/rename file with current time
By jp22382 in forum Applications and Operating SystemsReplies: 2Last Post: May 19th, 2009, 06:25 AM -
Batch file or Script file ???
By AndreL in forum Webmastering and ProgrammingReplies: 3Last Post: September 26th, 2008, 06:14 AM -
exporting an MPEG II file to DVD
By ShuckyD in forum Multimedia and AudioReplies: 9Last Post: December 17th, 2005, 07:29 PM -
Batch File
By nighthawk-uk in forum Webmastering and ProgrammingReplies: 3Last Post: December 20th, 2004, 11:07 AM -
Help with Batch File Please
By wasabi1980 in forum General Tech DiscussionReplies: 6Last Post: September 18th, 2003, 09:57 PM



LinkBack URL
About LinkBacks



Reply With Quote

Morning! Spam cleaned up, now it's time to shave & shower.
Is It Just Me? v233893843