Talk About Network

Google





Software > Basic Dos > Re: a batch fil...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 623 of 700
Post > Topic >>

Re: a batch file applied to every user, a simpler way?

by "Karl E. Peterson" <karl@[EMAIL PROTECTED] > Oct 3, 2007 at 04:57 PM

Okay, first off, this isn't a DOS sup****t group.  This is for DOS versions
of the 
BASIC langauge.  That said, ...

John Smith <jsmith@[EMAIL PROTECTED]
> wrote:
> I would like to run the following command (to purge tem****ary
> files) from the administrator account and have it applied to every
> user on a computer. One way to do it, I guess, is replace user1
> with a variable and run the batch file with all users on the computer.
>
> Any simpler way?
>
> rd /s /q C:\Do***e~1\chouj\Locals~1\tem****~1

I *hate* the ~1 style, but for brevity will use it:

  for /d %d in (C:\Do***e~1\*) do rd /s /q %d\locals~1\tem****~1

Do "for /?" for deeper insight.
-- 
..NET: It's About Trust!
 http://vfred.mvps.org
 




 4 Posts in Topic:
Re: a batch file applied to every user, a simpler way?
"Karl E. Peterson&qu  2007-10-03 16:57:49 
Re: a batch file applied to every user, a simpler way?
"Judson McClendon&qu  2007-10-04 07:50:18 
Re: a batch file applied to every user, a simpler way?
"Auric__" <n  2007-10-04 14:36:58 
Re: a batch file applied to every user, a simpler way?
"Karl E. Peterson&qu  2007-10-04 13:33:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 20:35:28 PST 2009.