![]() |


|
|||||||
| Hardware & Software Discussion Hardware and Software discussion and troubleshooting. Tweakers and Overclockers welcome! |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Join Date: Dec 2004
Location: South east england
Posts: 8,839
|
MS-DOS question
I've got lines in my autoexec.bat to get rid of all the rubbish directories that various micro$oft programs force on me ie my music, my photos and all the intrusive stuff like temp internet files and stuff.
I'm using deltree to do this, and each time autoexec invokes the command, I have to confirm it. I know for a fact that there is a way round this. It involves putting the character y in a file, and pointing to this file in each line of the autoexec.bat that invokes it. My problem, is that I can't remember exactly how to do all this. Anyone able to help? Cheers Root
__________________
BFCL TF2 league admin
![]() |
|
|
|
|
|
#2 (permalink) |
![]() ![]() Join Date: May 2003
Location: Memphis, TN
Posts: 14,148
|
Re: MS-DOS question
Use del.exe instead?
del c:\whatever Bam. C:\whatever and everything inside it is gone?
__________________
Steam Community? Add me. | Join #tacticalgamer | Search Results Legend | New Posts Forum Filter | Postbox Toggle | Live Thread Review | One Line Results | Free Remote, Encrypted Backup Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Root: Welcome to TG. Feel free to punctuate your sentences correctly. Monkerz: Its gonna take all my skills to beat those boys off in the future. |
|
|
|
| Sponsored links | |
|
|
|
|
|
#3 (permalink) |
![]() ![]() ![]() Join Date: Aug 2004
Location: Fairfax, Virginia
Age: 27
Posts: 2,173
|
Re: MS-DOS question
rmdir C:\windows\junkfolder /s/q
this command will delete all files in the directory "junkfolder" and its subdirectories without prompting. it will also remove the folder "junkfolder" to delete individual files without a prompt try del junkfile /q the /q on both commands prevents the prompt from asking yes or no This all works in windows xp, It may not work in 98 or 95. deltree should have a parameter that will turn off the prompt... try deltree ? or deltree /? to see available parameters. |
|
|
|
|
|
#4 (permalink) | |
|
Join Date: Dec 2004
Location: South east england
Posts: 8,839
|
Re: MS-DOS question
Quote:
Should there be a switch after the path Wyz? del c:\whatever only removes the files within \whatever, doesn't remove the directory, *and* asks for confirmation Edit: Never mind thanks for your help guys, turns deltree has a switch to supress confirmation, but unlike most dos commands, this one is very picky about where the switch goes. Cheers Root
__________________
BFCL TF2 league admin
![]() |
|
|
|
|
|
|
#5 (permalink) | |
|
Join Date: May 2003
Location: Vestavia Hills, AL
Age: 38
Posts: 407
|
Re: MS-DOS question
Quote:
Removes (deletes) a directory. RMDIR [/S] [/Q] [drive:]path RD [/S] [/Q] [drive:]path /S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree. /Q Quiet mode, do not ask if ok to remove a directory tree with /S Deltree doesn't come with XP...what kinda hacked-up OS are you on? ![]() |
|
|
|
|
|
|
#6 (permalink) | ||
|
Join Date: Dec 2004
Location: South east england
Posts: 8,839
|
Re: MS-DOS question
Quote:
Win98se in this case. c:>rmdir/? Removes (deletes) a directory RMDIR [drive:] path RD [drive:] path No switches there. So I tried c:\windows> rmdir /s /q temp Invalid switch - /s Just to try everything, I tried c:\windows>rmdir /q temp Invalid switch - /q So I don't know what hacked up OS *you* are on Quote:
Cheers Root
__________________
BFCL TF2 league admin
![]() |
||
|
|
|
| Sponsored links | |
|
|
|
|
|
#7 (permalink) |
![]() ![]() Join Date: May 2003
Location: Memphis, TN
Posts: 14,148
|
Re: MS-DOS question
I've never had a need to remove temp directories manually in XP.
I run MS Anti-Spyware and have more disk space than I've yet proven able to consume. I remember 98se. They're not happy memories.
__________________
Steam Community? Add me. | Join #tacticalgamer | Search Results Legend | New Posts Forum Filter | Postbox Toggle | Live Thread Review | One Line Results | Free Remote, Encrypted Backup Darkilla: In short, NS is pretty much really fast chess. With guns. Apophis: I haven't seen anyone say that SM's are better than non-SMs. Nordbomber: This is THE first server I've seen where either side can comeback from out of seemingly nowhere with the right teamwork. en4rcment: I have NEVER experienced the type of gameplay that I have found here. Nightly I am amazed at the personalities and gaming talent. Root: Welcome to TG. Feel free to punctuate your sentences correctly. Monkerz: Its gonna take all my skills to beat those boys off in the future. |
|
|
|
|
|
#8 (permalink) | ||
|
Join Date: May 2003
Location: Vestavia Hills, AL
Age: 38
Posts: 407
|
Re: MS-DOS question
Quote:
Quote:
|
||
|
|
|
|
|
#9 (permalink) | |
|
Join Date: Dec 2004
Location: South east england
Posts: 8,839
|
Re: MS-DOS question
Quote:
![]() I don't like the way that windows logs everything you do. I cannot see why the content.ie5 directory has to be hidden in such a way that most users never even realise it exists. I'm a big believer in innocent people having all the privacy they want, and between the security holes in MS products, and their built in spyware, I'll just be glad when I'm proficient enough at linux to abandon M$ for good. Root
__________________
BFCL TF2 league admin
![]() |
|
|
|
|
| Sponsored links | |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MS AntiSpyware question regarding demo | Wyzcrak | Ghost Recon Advanced Warfighter - General Discussion | 7 | 12-24-2006 11:23 PM |
| Theology question | Rick_the_new_guy | The Sandbox | 37 | 08-15-2006 06:08 PM |
| Operation Iraqi Freedom Question: | Rick_the_new_guy | The Sandbox | 28 | 08-09-2006 04:58 PM |
| map, mod, content question | roger smith | Battlefield 2 - Map & Mod Development | 2 | 07-02-2006 03:15 AM |
| A question in honor of MLK Day? | RGM-79N_GM_CUstom | The Sandbox | 8 | 01-18-2006 01:46 AM |

