Computer Hope

Software => Computer programming => Topic started by: pomme8916 on March 12, 2007, 06:27:39 PM

Title: batch file
Post by: pomme8916 on March 12, 2007, 06:27:39 PM
how do i delete all files in the folder the file is in without deleting itsekf when finidhed while supreessing Y?
Title: Re: batch file
Post by: ericmarshall2000 on March 12, 2007, 07:09:23 PM
try using attrib.  Set all files to NOT read only, then set just the one file to read only, then delete files that are NOT set to read only.  

attrib -r .
attrib +r file.bat
del /q /a -r
Title: Re: batch file
Post by: C++ Programmer on April 26, 2007, 07:01:39 PM
Why dont you just try moveing the batch file then deleteing the registery.

 :oI dont have the REANME command fresse in my head, so please excess the fact the ive told you the wrong command parameters. 

Example:
rename BATCH.bat -a "C:\OtherFolder"
delete "C:\OrginalFolder"


Maybe?
I'm really not sure... i dont know a whole lot about batch files. But, excessing the wrong commands, that would work (if i am understanding you)
Title: Re: batch file
Post by: contrex on May 05, 2007, 07:06:20 AM
Why dont you just try moveing the batch file then deleteing the registery.

 :oI dont have the REANME command fresse in my head, so please excess the fact the ive told you the wrong command parameters. 

Example:
rename BATCH.bat -a "C:\OtherFolder"
delete "C:\OrginalFolder"


Maybe?
I'm really not sure... i dont know a whole lot about batch files. But, excessing the wrong commands, that would work (if i am understanding you)

I don't know why you bothered to post that load of tripe, unless it was to increase your post count. If you don't know the answer, don't post anything!
Title: Re: batch file
Post by: Computer Hope Admin on May 07, 2007, 01:45:16 PM
Multiple complaints against this user. So user has been banned.
Title: Re: batch file
Post by: CBMatt on May 08, 2007, 03:32:25 AM
Wait...which user?  contrex?
Title: Re: batch file
Post by: contrex on May 08, 2007, 04:19:07 AM
Yes me... I'm so banned I can't post any more! No it's "C++ Programmer" I think, although I had a funny feeling when I read that!
Title: Re: batch file
Post by: CBMatt on May 08, 2007, 04:22:13 AM
I see no evidence of anyone being banned.  I suppose it doesn't really matter; just kinda struck me as odd.
Title: Re: batch file
Post by: Carbon Dudeoxide on May 08, 2007, 04:27:57 AM
Why did he get banned? (if he did) So what if he is just giving advice and not necessarily knowing how to solve the problem?
Title: Re: batch file
Post by: contrex on May 08, 2007, 04:33:06 AM
So what if he is just giving advice and not necessarily knowing how to solve the problem?

Because it's stupid and unhelpful and makes the forum into a joke?

Anyway, the advice to "delete the registery" [sic] is rather mischievous, to say the least.
Title: Re: batch file
Post by: Computer Hope Admin on May 09, 2007, 12:19:55 PM
I apologize for the confusion, it was user "C++ Programmer" that was banned. He gave inappropriate advice: "try moveing the batch file then deleteing the registery".
Title: Re: batch file
Post by: Carbon Dudeoxide on May 09, 2007, 04:40:23 PM
how do you delete the registry??
Title: Re: batch file
Post by: contrex on May 10, 2007, 12:22:58 AM
how do you delete the registry??

Look it up on Google. Too many kiddies in diapers to post details on here.

Title: Re: batch file
Post by: CBMatt on May 10, 2007, 06:39:54 AM
I apologize for the confusion, it was user "C++ Programmer" that was banned. He gave inappropriate advice: "try moveing the batch file then deleteing the registery".
Thanks for clearing that up, Nathan.
Title: Re: batch file
Post by: Carbon Dudeoxide on May 10, 2007, 07:00:39 AM
how do you delete the registry??

Look it up on Google. Too many kiddies in diapers to post details on here.


Nah, can't be bothered. Deleting the registry will just screw up your computer...
Title: Re: batch file
Post by: contrex on July 03, 2007, 01:38:53 PM
Good to see a two month old thread being revived, BrainiacOutcast...  ::)
Title: Re: batch file
Post by: Dark Blade on July 04, 2007, 12:40:06 AM
Do you think we should ban him?
Title: Re: batch file
Post by: contrex on July 04, 2007, 12:44:43 AM
Do you think we should ban him?

No need... he's probably fled under a rock in embarassment.
Title: Re: batch file
Post by: Dark Blade on July 04, 2007, 12:52:36 AM
It took him 8 posts of complete stupidty to become embarrassed? But I guess that we won't be seeing him for a long time (at least until this post is a few years dead).