Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I do a File Copy in Login Script

Status
Not open for further replies.

CST

IS-IT--Management
Jun 20, 2000
35
GB
I am trying to do a file copy in the login script Netware 4.11 I have tried the following commands:- COPY - NCOPY - and DOS COPY, none of these work, is there a different command to use?

Thanks

Catherine
 
Are you putting a # or @ before your copy commands? External commands (like copies or running batch files) in login scripts need to be preceded with a # or @ sign.
 
Catherine,

In your system login script you need to precede the dos command with the # symbol. This should work. You also have the option of writing a batch script with your copy command and executing it from the login script. This will allow you to make changes to the batch file without having to always touch the login script. We know what can happen if you make one small mistake there - I've been there too many times myself. Let me know if this was helpful...

- John
 
Thank you John,

This has helped and worked which is a huge relief, I have spent almost two weeks trying to sort it out.

Catherine
 
Hi All, I've tried to follow the Instructions above but I'm having no luck. My command is as follows:

#copy "f:\public\wfn\upload\wfnserv.exe" "c:\program files\wfn\"

I've tried it without the quotation marks and it doesn't work however I'm using Windows 2000 Pro and apparantly it requires them for long directory and file names?

Is my mistake apparant or does anyone have any ideas as to where i should look next?

Thanks

Mike
 
The easy option is to put your copy command into a batch file then call the batch file from the login script.

-----------------------------------------------------
"It's true, its damn true!"
-----------------------------------------------------
 
you also may want to use dos names

ie
#copy "f:\public\wfn\upload\wfnserv.exe" "c:\progra~1\wfn\"

or do it in revrese and in batch file change to programe files and then vopy it in
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top