Jump to content



Dos Commands

  • Please log in to reply
1 reply to this topic

#1 hassle


    X-S Senior Member

  • Members
  • PipPip
  • 194 posts
  • Location:Fresno, CA
  • Interests:Games
  • Xbox Version:v1.0
  • 360 version:none

Posted 06 November 2008 - 03:26 PM

i wrote a batch file that creates a backup of my thumb drive whenever i plug it in. and now im trying to write a batch file that will delete the old contents of the backup folder.

the problem is that whenever i use RMDIR it also removes the backup folder, which i want to keep. if i use DEL, then it only deletes the files and not the folders in the backup directory.

can somebody point me in the right direction to get everything out of that backup folder when i run the batch file...

#2 throwingks


    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,957 posts
  • Gender:Male
  • Xbox Version:v1.4
  • 360 version:v4.0 (jasper)

Posted 06 November 2008 - 03:42 PM

del c:\backup\*.*

rd directory_name

Don't use /s

Edited by throwingks, 06 November 2008 - 03:46 PM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users