A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Windows XP Help and Support
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

delete contents from folder upon login



 
 
Thread Tools Display Modes
  #1  
Old May 27th 08, 12:22 AM posted to microsoft.public.windowsxp.help_and_support
jatman
external usenet poster
 
Posts: 6
Default delete contents from folder upon login

good afternoon,

is it possible to write a small batch file that will delete the contents of
a folder when a user logs onto xp.

normally i would write a macro in word to do this, but i am experiencing
difficulties and have opted to just delete the contents of the folder when a
user logs on.

the files would be temporary files that need to be saved properly (for file
name and subject lines) before they can be emailed out by Outlook. users
always forget to clean up the folder so sometimes there could be sensitive
information in the folder.

any suggestions on where to start would be appreaciated,

jat

Ads
  #2  
Old May 27th 08, 12:43 AM posted to microsoft.public.windowsxp.help_and_support
Mark L. Ferguson
external usenet poster
 
Posts: 4,253
Default delete contents from folder upon login

XP has GPEDIT.MSC, which can set a policy to use a "Logon Script" of your
own creation. Knowing the path to the files, there a numerous ways to delete
them.
--delete.bat--
del PathToFiles\*.* /q
--end file--
--
click the Ratings button. Voting helps the web interface.
http://www.microsoft.com/wn3/locales...help_en-us.htm see ''rate a post''
Mark L. Ferguson

"jatman" wrote in message
...
good afternoon,

is it possible to write a small batch file that will delete the contents
of
a folder when a user logs onto xp.

normally i would write a macro in word to do this, but i am experiencing
difficulties and have opted to just delete the contents of the folder when
a
user logs on.

the files would be temporary files that need to be saved properly (for
file
name and subject lines) before they can be emailed out by Outlook. users
always forget to clean up the folder so sometimes there could be sensitive
information in the folder.

any suggestions on where to start would be appreaciated,

jat

  #3  
Old May 27th 08, 01:12 AM posted to microsoft.public.windowsxp.help_and_support
Mark L. Ferguson
external usenet poster
 
Posts: 4,253
Default delete contents from folder upon login

I missed the syntax

it's:
del /q path/*.*

--
click the Ratings button. Voting helps the web interface.
http://www.microsoft.com/wn3/locales...help_en-us.htm see ''rate a post''
Mark L. Ferguson

"Mark L. Ferguson" wrote in
message ...
XP has GPEDIT.MSC, which can set a policy to use a "Logon Script" of your
own creation. Knowing the path to the files, there a numerous ways to
delete them.
--delete.bat--
del PathToFiles\*.* /q
--end file--
--
click the Ratings button. Voting helps the web interface.
http://www.microsoft.com/wn3/locales...help_en-us.htm see ''rate a
post''
Mark L. Ferguson

"jatman" wrote in message
...
good afternoon,

is it possible to write a small batch file that will delete the contents
of
a folder when a user logs onto xp.

normally i would write a macro in word to do this, but i am experiencing
difficulties and have opted to just delete the contents of the folder
when a
user logs on.

the files would be temporary files that need to be saved properly (for
file
name and subject lines) before they can be emailed out by Outlook. users
always forget to clean up the folder so sometimes there could be
sensitive
information in the folder.

any suggestions on where to start would be appreaciated,

jat

  #4  
Old May 27th 08, 05:46 AM posted to microsoft.public.windowsxp.help_and_support
jatman
external usenet poster
 
Posts: 6
Default delete contents from folder upon login

thanks Mark, that was a great start. i set up the batch file to run on logoff.

or the script paramaters, i have
%systemroot%\grouppolicy\users\scripts\logoff
is this correct?

i tried to use the del command in just straight dos and also checked out the
site http://www.computerhope.com/delhlp.htm and tired their commands, but it
does not work.

are the scrip paramaters correct, or are they for something else. (i also
tried it with the scrip paramaters blank.) are there any other sites that i
could check out that you know of?

thanks,

jat



"Mark L. Ferguson" wrote:

XP has GPEDIT.MSC, which can set a policy to use a "Logon Script" of your
own creation. Knowing the path to the files, there a numerous ways to delete
them.
--delete.bat--
del PathToFiles\*.* /q
--end file--
--
click the Ratings button. Voting helps the web interface.
http://www.microsoft.com/wn3/locales...help_en-us.htm see ''rate a post''
Mark L. Ferguson

"jatman" wrote in message
...
good afternoon,

is it possible to write a small batch file that will delete the contents
of
a folder when a user logs onto xp.

normally i would write a macro in word to do this, but i am experiencing
difficulties and have opted to just delete the contents of the folder when
a
user logs on.

the files would be temporary files that need to be saved properly (for
file
name and subject lines) before they can be emailed out by Outlook. users
always forget to clean up the folder so sometimes there could be sensitive
information in the folder.

any suggestions on where to start would be appreaciated,

jat

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 02:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.