Windows XP Community - XPHeads



delete contents from folder upon login

microsoft.public.windowsxp.help_and_support


Reply
  #1 (permalink)  
Old 05-26-2008, 11:22 PM
jatman
 
Posts: n/a
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-26-2008, 11:43 PM
Mark L. Ferguson
 
Posts: n/a
Re: 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" <jatman@discussions.microsoft.com> wrote in message
news:B54640AE-6436-41C8-99C6-B519C021503A@microsoft.com...
> 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
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-27-2008, 12:12 AM
Mark L. Ferguson
 
Posts: n/a
Re: 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" <MarkLFerguson@discussions.microsoft.com> wrote in
message news:36B4B26A-1FCE-47E0-B50F-0246612F5249@microsoft.com...
> 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" <jatman@discussions.microsoft.com> wrote in message
> news:B54640AE-6436-41C8-99C6-B519C021503A@microsoft.com...
>> 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
>>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-27-2008, 04:46 AM
jatman
 
Posts: n/a
Re: 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" <jatman@discussions.microsoft.com> wrote in message
> news:B54640AE-6436-41C8-99C6-B519C021503A@microsoft.com...
> > 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
> >

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:42 AM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74