Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch file  (Read 9291 times)

0 Members and 1 Guest are viewing this topic.

pomme8916

  • Guest
batch file
« 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?

ericmarshall2000

  • Guest
Re: batch file
« Reply #1 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

C++ Programmer

  • Guest
Re: batch file
« Reply #2 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)

contrex

  • Guest
Re: batch file
« Reply #3 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!

Computer Hope Admin

  • Administrator


  • Prodigy

    Thanked: 248
    • Yes
    • Yes
    • Yes
    • Computer Hope
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 10
Re: batch file
« Reply #4 on: May 07, 2007, 01:45:16 PM »
Multiple complaints against this user. So user has been banned.
Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
-Albert Einstein

CBMatt

  • Mod & Malware Specialist


  • Prodigy

  • Sad and lonely...and loving every minute of it.
  • Thanked: 167
    • Yes
  • Experience: Experienced
  • OS: Windows 7
Re: batch file
« Reply #5 on: May 08, 2007, 03:32:25 AM »
Wait...which user?  contrex?
Quote
An undefined problem has an infinite number of solutions.
—Robert A. Humphrey

contrex

  • Guest
Re: batch file
« Reply #6 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!

CBMatt

  • Mod & Malware Specialist


  • Prodigy

  • Sad and lonely...and loving every minute of it.
  • Thanked: 167
    • Yes
  • Experience: Experienced
  • OS: Windows 7
Re: batch file
« Reply #7 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.
Quote
An undefined problem has an infinite number of solutions.
—Robert A. Humphrey

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: batch file
« Reply #8 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?

contrex

  • Guest
Re: batch file
« Reply #9 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.

Computer Hope Admin

  • Administrator


  • Prodigy

    Thanked: 248
    • Yes
    • Yes
    • Yes
    • Computer Hope
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 10
Re: batch file
« Reply #10 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".
Everybody is a genius. But, if you judge a fish by its ability to climb a tree, it will spend its whole life believing that it is stupid.
-Albert Einstein

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: batch file
« Reply #11 on: May 09, 2007, 04:40:23 PM »
how do you delete the registry??

contrex

  • Guest
Re: batch file
« Reply #12 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.


CBMatt

  • Mod & Malware Specialist


  • Prodigy

  • Sad and lonely...and loving every minute of it.
  • Thanked: 167
    • Yes
  • Experience: Experienced
  • OS: Windows 7
Re: batch file
« Reply #13 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.
Quote
An undefined problem has an infinite number of solutions.
—Robert A. Humphrey

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: batch file
« Reply #14 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...