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 should delete itself after running
Name: Miskva Date: January 20, 2001 at 14:08:24 Pacific
Comment:
I got a program which creates batch files, and then they are ready to be run... it would be nice if they would be able to delete themselves after running ... Its quite easy to manage, using another program/batchfile, but just wondering if something like this is possible .. with or without some tricks ...
Summary: I'm not real sure what your asking except that you want to parse a command... use the %1 sign for the parse ie. copy con xxx.bat cd\xxxx filetorun %.xxx ^z ^z = ctr+z this is the format for say an edi...
Summary: This one will delete itself after the 5th run. Doskey must be in the path (or running). :: delme5.bat :: deletes self after the fifth time run @echo off ECHO %0 |FIND.EXE ":\" >nul IF errorlevel=...
Summary: After finding a chacter string in a given file, I want to rename the file using a portion of that character string. 1. I am using a .bat program 2. File locker.rpt is in my working directory 3. runnin...