[SLIGHTLY OT] [6.1] login script for cleaning out 6.1 temp dir

Bruce,



Been a while since I did a lot of batch programming. There are a couple
of ways you can do this, but it does involve a little manual labor. You
will have to go to everyone of the workstations and define a system
variable for the temp directory, then you can put %VARIABLENAME% in your
batch file. However, if you know that all the regular users have
C:\EPICOR\MFGSYS61 as their temp directory, you can always define the
variable first in the batch file:



SET LOCAL_EPICORTEMP=C:\EPICOR\MFGSYS61

DEL %LOCAL_EPICORTEMP%\*.* /F/S/Q



For your terminal server users this may be a little more tricky, but I
think you can do this...



SET TERMINAL_EPICORTEMP=U:\EPICOR\MFGSYS61

DEL %TERMINAL_EPICORTEMP%\*.* /F/S/Q



For the local machines you could set this up to run before they even
login to the machine - part of the run startup scripts group policy
settings and this way it is seem-less to the user - this is part of the
domain startup scripts and NOT part of the local computer scripts.



Hope this helps.



Thanks,



Jason Claggett

Microsoft Small Business Specialist

MCP #3856159

2W Technologies, LLC

317.578.2393

jason@...

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Bruce Butler
Sent: Friday, June 01, 2007 10:45 AM
To: vantage@yahoogroups.com
Subject: [Vantage] [SLIGHTLY OT] [6.1] login script for cleaning out 6.1
temp dir



I am looking to write a login script to clean out the Vantage temp
directory every time a user logs in. My problem is finding the temp
directory within a script. Is there a key kept somewhere in the
registry? I did a local search, and did not see anything.

Most users use the standard directory (C:\Epicor\MFGSYS61). However, I
have remote & thin client users which use a U:\Epicor\MFGSYS61\
directory. Who knows what else has been setup over the years. I would
simply like to know where to best query that information.

Thank you,

Bruce Butler, IT Manager

Knappe & Koester, Inc. <http://www.knappe-koester.com>

18 Bradco Street

Keene, NH

p. 603-355-1166

f. 603-355-2266

bbutler@... <mailto:bbutler%40knappe-koester.com>

The information in this message is proprietary and/or confidential and
is intended only for the use of the individual(s) named above. This
message should not be forwarded without permission from the author. If
this message is received in error or otherwise by someone other than the
addressee, please contact the author at the above number and return the
message or destroy it. In addition, the recipient of this data agrees to
abide by the United States Export Control of Technical Data and
Equipment under the International Traffic in Arms Regulations (ITAR) and
Export Administration Regulations (EAR). The recipient agrees to abide
by these laws and their regulations not only for export and re-export,
but for disclosure to non-U.S. citizens.

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
I am looking to write a login script to clean out the Vantage temp
directory every time a user logs in. My problem is finding the temp
directory within a script. Is there a key kept somewhere in the
registry? I did a local search, and did not see anything.



Most users use the standard directory (C:\Epicor\MFGSYS61). However, I
have remote & thin client users which use a U:\Epicor\MFGSYS61\
directory. Who knows what else has been setup over the years. I would
simply like to know where to best query that information.



Thank you,



Bruce Butler, IT Manager

Knappe & Koester, Inc. <http://www.knappe-koester.com>

18 Bradco Street

Keene, NH

p. 603-355-1166

f. 603-355-2266

bbutler@...



The information in this message is proprietary and/or confidential and
is intended only for the use of the individual(s) named above. This
message should not be forwarded without permission from the author. If
this message is received in error or otherwise by someone other than the
addressee, please contact the author at the above number and return the
message or destroy it. In addition, the recipient of this data agrees to
abide by the United States Export Control of Technical Data and
Equipment under the International Traffic in Arms Regulations (ITAR) and
Export Administration Regulations (EAR). The recipient agrees to abide
by these laws and their regulations not only for export and re-export,
but for disclosure to non-U.S. citizens.







[Non-text portions of this message have been removed]