[THIN] Re: Batch file

The first FOR command should be on a new line (didn't seem to come through
that way when I emailed it). The first two lines are SET commands. The third
(and last) line is a FOR command that contains another FOR command.

Regards,
Chris


-----Original Message-----
From: Chris Coleman [mailto:Chris.Coleman@xxxxxxxxxx] 
Sent: Monday, 9 September 2002 2:49 PM
To: 'thin@xxxxxxxxxxxxx'
Cc: 
Subject: [THIN] Re: Batch file


Here's a method that I use to delete the Temporary Internet Files & Folders
from within the users Documents and Settings directories...

SET SRC1=C:\Documents and Settings
SET SRC2=Local Settings\Temporary Internet Files\Content.IE5
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC2%\*.*") DO RMDIR /S
/Q "%%Y"

Regards,
Chris


-----Original Message-----
From: Euan Cooper [mailto:Euan.Cooper@xxxxxxxxxxxx] 
Sent: Monday, 9 September 2002 11:52 AM
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: Batch file


Yes ...

The following lines from my reboot script might put you on the right track.
I my case I have re-set all users to use %SystemDrive%\Temporary Internet
Files rather than having their Temporary Internet Files as part of their
Profile

-Ec

:: Delete everything from the TEMP and Temporary Internet Files Directories 
:: This cleans up various problems on Windows Terminal Server

cd \Temp
attrib *.* -r -s -h /s
del *.* /q /s  
for /F "delims==" %%i IN ('dir /b') Do rd %%i /s /q

cd "\Temporary Internet Files"
attrib *.* -r -s -h /s
del *.* /q /s /f   
for /F "delims==" %%i IN ('dir /b') Do rd %%i /s /q

cd\

:: Next lines make sure that everyone has the correct permissions
Cacls %SystemDrive%\TEMP /E /P EveryOne:F
>>Shutdown.txt    
Cacls "%SystemDrive%\Temporary Internet Files" /E /P EveryOne:F
>>Shutdown.txt
Echo.
>>Shutdown.txt   

-----Original Message-----
From: Michael Boggan [mailto:MBoggan@xxxxxxxxxxx]
Sent: Thursday, 5 September 2002 4:12 a.m.
To: THIN (E-mail)
Subject: [THIN] Batch file


I am trying to find a way (without learning to program with kixstart or
anyother) to write a batch file that will delete all temporary internet
files or directories on our storage server.  Has anyone done this before?

_________________________________ 
 
Michael Boggan
Network Engineer/Citrix Admin
Virtual Desktop Inc. 
Dallas, Texas 
Ph: (972) 960-6400 
Fax: (972) 960-6445 
email: mboggan@xxxxxxxxxxx 
http://www.virtualdesktopinc.com 
_________________________________ 


NOTICE !!!!!

This e-mail message is privileged and confidential and is intended only for
the use of the addressee. 
If you are not the intended recipient:

confidentiality and privilege is not waived; 
please contact us immediately to advise of receipt by you; and 
you are not to read, disseminate, copy or take any action in respect to the
contents of this e-mail. 

Any views or opinions presented are solely those of the author, except where
it is specifically stated by the sender to be views of Connected Solutions
Group.


This e-mail has been scanned, logged and cleared by Mail Marshal


**********************************************
This weeks sponsor 99Point9.com
99Point9 helps solve your unresolved technical
server-based questions, issues and incidents.
http://www.99point9.com
***********************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

NOTICE !!!!!

This e-mail message is privileged and confidential and is intended only for the 
use of the addressee. 
If you are not the intended recipient:

confidentiality and privilege is not waived; 
please contact us immediately to advise of receipt by you; and 
you are not to read, disseminate, copy or take any action in respect to the 
contents of this e-mail. 

Any views or opinions presented are solely those of the author, except where it 
is specifically stated by the sender to be views of Connected Solutions Group.


This e-mail has been scanned, logged and cleared by Mail Marshal


**********************************************
This weeks sponsor 99Point9.com
99Point9 helps solve your unresolved technical
server-based questions, issues and incidents.
http://www.99point9.com
***********************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: