msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Excluding Folders when using del /s

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS
Author Message
Mad-Penguin



Joined: 04 Oct 2007
Posts: 1

PostPosted: Thu Oct 04, 2007 8:04 am    Post subject: Excluding Folders when using del /s Reply with quote

Hello

I am trying to write a simple script that will del /s all *.mp3 files from
within a directory but exclude a single folder from having its *.mp3 deleted.

How can I exclude this directory.

Thank you
Steve

Archived from group: microsoft>public>vb>dos
Back to top
View user's profile Send private message
Ethan Winer



Joined: 04 Oct 2007
Posts: 30

PostPosted: Thu Oct 04, 2007 1:48 pm    Post subject: Re: Excluding Folders when using del /s Reply with quote

> How can I exclude this directory.

Move that folder to somewhere else. Or mark all the files read-only. Or
learn a real programming language, which is a LOT more fun than writing
batch files. :->)

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
web folders hi! can anyone please help me im trying to create a program in which it will link to a specific web folder (webdav) and then checks for new files and then automatically download it or upload files or folder

Folders in a certain location hey, i am trying to organise all my music and am making a progam that will automatically make a html catalog. (mainly because im too lazy to do it myself) i have been looking on the internet with no sucsess. i am wanting some code that will write all the

Scan folders Hello, I need to scan folders and sub-folders for a special message structure. The structure is 1 file with the address and 1 file with the message, the extension of the address file is always the same But the message file is always different. Ex-sample:

Vista and 'Known Folders' Looks like Vista has replaced the CSIDL folder identifiers with KNOWNFOLDERID values that are actually GUIDs (see I just spent some time tracking down the constants and getting some VB6 code to do

Move folders? How can I move complete folders (sub-folders and files) in VB6 in the same way as Windows explorer does it (copy & paste)? Is it possible to go through this process without moving each file Than you, Rick.
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group