|
Answer» :'(my computer is tired when many people USED it later. so , I want to creat a batch file to choose to delete some scrap files when the computer is starting. but I don't want to delete other files WITHIN these scrap files, how to do? for example: I want to del d:\any.txt in bath files ,but I don't want to del others which are the same disk's files.help me, thanks.....From a command prompt type del /? Pay particular attention to the /p switch.
If you want to run something at start up, either put a reference to your batch file in the startup folder, or in your autoexec.bat file or as a scheduled task that starts at startup.
Hope this helps. Just one short favor. After I ran system recovery for my PC's hard drive, I lost an AUTOEXEC.BAT MS-DOS file where I kept instructions like: SET MCDIR= C:\MC. This allowed me to transfer command to a set of files store in a folder named "MC", that I bought to program microprocessors and that uses the DOS operating system. After I called the "C:\WINDOWS>" MS-DOS prompt, I just had to write: CD C:\. And after the C:\> prompt "C:\MC" . Finally, I was able to work through "C:\MC>". I wonder if there is a WAY to create this AUTOEXEC.BAT MS-DOS file from the "C:\WINDOWS>" MS-DOS prompt? I would appreciate any hint on this matter. Thanks and Regards, Luis MejiaSure. Enter edit \autoexec.bat at the command prompt. It should COME up with no records in the file. Enter the records as needed and then File-->Save.
Hope this helps.
NOTE: you can also use Notepad or Wordpad. Be sure to save the autoexec.bat file in your root directory.
|