General discussion

Locked

Copy a file at login

By dennisbv ·
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

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Copy a file at login

by tamj123 In reply to Copy a file at login

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

Collapse -

Copy a file at login

by dennisbv In reply to Copy a file at login

Poster rated this answer

Collapse -

Copy a file at login

by adamcox In reply to Copy a file at login

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

Collapse -

Copy a file at login

by dennisbv In reply to Copy a file at login

Poster rated this answer

Collapse -

Copy a file at login

by Mark_Taylor In reply to Copy a file at login

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.

Collapse -

Copy a file at login

by dennisbv In reply to Copy a file at login

Poster rated this answer

Collapse -

Copy a file at login

by dennisbv In reply to Copy a file at login

This question was closed by the author

Back to Windows Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums