Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Delete & remake empty text files

  • Please log in to reply
2 replies to this topic

#1 wahlroot


  • Members
  • 34 posts
  • Local time:06:10 PM

Posted 01 September 2005 - 08:36 PM

I have a Batch File that deletes some text files at bootup in some applications. These empty text files are remade when the application is started. This is the line that I use to do this.
DEL /s /q "C:\PROGRA~1\Application\File.dat"
This slows the application startup. I would like to have the empty text files remade by the batch file during bootup. I tried this after the DEL Line but it did not work.
copy "C:\Folder\File.dat C:\PROGRA~1\Application"
Is this possible. If so, how.

Edited by wahlroot, 01 September 2005 - 08:37 PM.

BC AdBot (Login to Remove)


#2 wahlroot

  • Topic Starter

  • Members
  • 34 posts
  • Local time:06:10 PM

Posted 01 September 2005 - 11:40 PM

OK I made my batch file lines as follows, and it seems to work. Replaces the .dat files with other empty ones I had placed in the C:\folder. I had to remove the quotation marks before C and afterApplication. do not know why.
copy /y C:\Folder\File.dat C:\PROGRA~1\Application

Edited by wahlroot, 01 September 2005 - 11:41 PM.

#3 tg1911


    Lord Spam Magnet

  • Members
  • 19,274 posts
  • Gender:Male
  • Location:SW Louisiana
  • Local time:04:10 PM

Posted 01 September 2005 - 11:58 PM

Thanks for posting back with the "fix", wahlroot.
MOBO: GIGABYTE GA-MA790X-UD4P, CPU: Phenom II X4 955 Deneb BE, HS/F: CoolerMaster V8, RAM: 2 x 1G Kingston HyperX DDR2 800, VGA: ECS GeForce Black GTX 560, PSU: Antec TruePower Modular 750W, Soundcard: Asus Xonar D1, Case: CoolerMaster COSMOS 1000, Storage: Internal - 2 x Seagate 250GB SATA, 2 x WD 1TB SATA; External - Seagate 500GB USB, WD 640GB eSATA, 3 x WD 1TB eSATA

Become a BleepingComputer fan: Facebook

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users