It is currently Tue Sep 19, 2017 11:07 am


All times are UTC - 5 hours [ DST ]


Register for Windows Forums


New posts Register

Register for Windows Forums now to gain access to: post messages, download free books, competitions for great prizes, and get to know others. Members also see NO ADVERTS. Join today!




 Page 1 of 1 [ 1 post ] 
Message Author
 Post subject: Delete file/folder using Batch file[How To]
New postPosted: Sun May 15, 2011 2:04 am 
For this post the author UVAIS has received gratitude : Rich

I am really impressed By a article which post by Our Windows Guide Author Thomas

Can’t Delete a File? Use the Command Prompt [How To]

But some people are still confuesed that how to Remove files from Other drives ie D,E etc.

So here i am posting a Quick Tip ; Hope all you guys & girls will enjoy this :P

You can Delete file/folder using Batch file easily : Just save & Run :ugeek:

if you want to Delete files then your code'll something look like this :P

@ Echo Off

del /s /q "your file location-"Press Shift key & Right Click on on your file and select Copy as path".


Image

(Note: Save as type : All Files & Name = Anything you like.bat)

Image

For Example :ugeek:

if you want to remove files ; so your code is here :P

@ Echo Off

del /s /q "D:\Mintywhite Uvais Testing.bmp"


if you want to remove Folder ; so your code is here

@ Echo Off

rmdir /s /q "D:\Mintywhite Uvais Testing"


Note : Copy Code in Notepad and then Save ;)

Cheerrrssss :ugeek: :P



_________________
Image
Years of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membershipYears of membership
User avatar
Contributor
Contributor
Windows Guru
Windows Guru

Joined: Sat Aug 21, 2010 2:08 pm
Posts: 1505
Thanks given: 121 times
Thanks received: 263 times
Location: UVAIS-PC
OS: 7 Ultimate
 Profile E-mail  
 
Offline
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: