Go Back   Tactical Gamer > General Forums > Hardware & Software Discussion


Hardware & Software Discussion Hardware and Software discussion and troubleshooting. Tweakers and Overclockers welcome!

Reply
 
Thread Tools
Old 05-18-2005, 11:57 PM   #1 (permalink)
 
Root's Avatar
 
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
Root is offline   Reply With Quote
Old 05-19-2005, 01:26 AM   #2 (permalink)

 
Wyzcrak's Avatar
 
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.
Wyzcrak is offline   Reply With Quote
Sponsored links
Old 05-19-2005, 02:14 AM   #3 (permalink)


 
kormendi's Avatar
 
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.
kormendi is offline   Reply With Quote
Old 05-19-2005, 11:21 AM   #4 (permalink)
 
Root's Avatar
 
Join Date: Dec 2004
Location: South east england
Posts: 8,839
Re: MS-DOS question

Quote:
Originally Posted by Wyzcrak
Use del.exe instead?

del c:\whatever

Bam. C:\whatever and everything inside it is gone?
Rmdir only has one switch, and thats for file by file confirmation.

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
Root is offline   Reply With Quote
Old 05-22-2005, 07:35 PM   #5 (permalink)
 
Rampage's Avatar
 
Join Date: May 2003
Location: Vestavia Hills, AL
Age: 38
Posts: 407
Re: MS-DOS question

Quote:
Originally Posted by cookietester
Rmdir only has one switch, and thats for file by file confirmation.
Nope, Kormendi is right:
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?
Rampage is offline   Reply With Quote
Old 05-23-2005, 11:40 AM   #6 (permalink)
 
Root's Avatar
 
Join Date: Dec 2004
Location: South east england
Posts: 8,839
Re: MS-DOS question

Quote:
Originally Posted by Rampage
what kinda hacked-up OS are you on?
Clearly a micro$oft one

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:
Originally Posted by Rampage
Deltree doesn't come with XP
So how are you supposed to get rid of all the intrusive directories on startup? I bet you can't get rid of index.dat in your temporary internet files directory. Nothing worse than spyware that spybot can't detect.

Cheers
Root
__________________
BFCL TF2 league admin
Root is offline   Reply With Quote
Sponsored links
Old 05-23-2005, 11:48 AM   #7 (permalink)

 
Wyzcrak's Avatar
 
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.
Wyzcrak is offline   Reply With Quote
Old 05-23-2005, 06:27 PM   #8 (permalink)
 
Rampage's Avatar
 
Join Date: May 2003
Location: Vestavia Hills, AL
Age: 38
Posts: 407
Re: MS-DOS question

Quote:
Originally Posted by cookietester
Clearly a micro$oft one

Win98se in this case.
Ah, well you didn't mention that before. RMDIR does very different things in XP versus 98 (mainly because XP doesn't have DELTREE).

Quote:
Originally Posted by cookietester
So how are you supposed to get rid of all the intrusive directories on startup? I bet you can't get rid of index.dat in your temporary internet files directory. Nothing worse than spyware that spybot can't detect.
The question is, why would I care about getting rid of it? It doesn't meet the definition of spyware, just annoyware if I have nothing better to worry about -- but then, I could say that about the whole OS and not just one file.
Rampage is offline   Reply With Quote
Old 05-23-2005, 06:57 PM   #9 (permalink)
 
Root's Avatar
 
Join Date: Dec 2004
Location: South east england
Posts: 8,839
Re: MS-DOS question

Quote:
Originally Posted by Wyzcrak
I run MS Anti-Spyware
I find that term rather amusing. Hotmail has spam blocking, but you try using it to block junk from......hotmail

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
Root is offline   Reply With Quote
Sponsored links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

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


All times are GMT -4. The time now is 04:01 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
©2004-2008 - Tactical Gamer - All Rights Reserved