Discussion Locked

Copy a file at login

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I would like to know, how I can when a user logs in. Check to see if they are a sale staff and if so copy a power point file to there computer and make it run on thier next boot-up. The power point would only be one to four slides. and most of the sales staff will use a Dial up. This file would be changed Maybe daily or weekly. Would I name the file say (12-09.ppt) for December 9th and then on login if the file on the server is the same as on the client do nothing. If they are different replace the client file with the server ver.
Dennis

7 replies

by tamj123

try this logon script:

net use y: %logonserver%\netlogon

\\domain\netlogon\ifmember.exe domain\remote_sales
if ERRORLEVEL 1 call y:\copy.bat
net use y: /d

in copy.bat files:

copy "%logonserver%\netlogon\12-09.ppt" "c:\winnt\profiles\%username%\desktop\12-09.ppt"

hope this will help

by adamcox

The best way to do this would probably be (checking for membershup), to use the IFMEMBER application from the ResKit, and then simply use
IFMEMBER "Sales" THEN copyfile
IF EXIST "homedir\name.ppt" THEN "c:\program files\msoffice\powerpt.exe locationofppt"
in their login scripts. This should then allow you to copy the file, then automatically run it without them having to logon again. However, I'm not sure how you would check the attributes of a file. The easiest way would simply be to copy it every time, which would be a little time consuming in the copy process, but in my opinion, not more so than checking the attributes. The date problem could be overcome by using a VB application without a form, simply code similar to:

IF DIR(location of pptfile in homedir)=true THEN
now check the names using the DATE$ & ".ppt" function and then
either copy the file using COPY or simply exit the sub.

Hope that's helped.
Adam

by mark_taylor

I think the above answers aren't answering the question, you are asking what format you should save the file?
Anyway, I have found the best method being "Description-Date" for example "Test-20000324" for the 24 March 2000.

This discussion is closed to new replies.