Discussion Locked

Another Logon Script question

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

Hello everyone

I have created two batch files and saved them to the sysvol\sysvol\domain\scripts (NETLOGON) folder on our domain controller.

The appropriate script name is then placed in the Logon Script field in the properties sheet for each user account.

Each script copies a file from a share on another server to a folder on the users local PC.

The syntax is:

@echo off
rem batch file that copies the domain.co.uk gateway info to c:\pmail
xcopy \\orion\gateway\apsarch gateway\aps.sys c:\pmail\PMGATE.SYS /q /y
exit

It effectively changes the default address for sent mail (Pegasus Mail).

But, it does not work.

Any ideas?

7 replies

by pifflemaster

Try using quotes around the apsarch gateway.
i.e. "apsarch gateway"
So the command would look like:
xcopy \\orion\gateway\"apsarch gateway"\aps.sys c:\pmail\PMGATE.SYS /q /y

by exnn

Just use the 8 char old name in the path \\orion\gateway\apsarc~1\aps.sys c:\pmail.\PMGATE.SYS /q /y

Good luck

by blackcurrant

Whoops! Thanks for the suggestions Piffle etc, I copied the wrong version of the file. During troubleshooting I added the "" marks to the entire \\orion\... path, but it did not make any difference.

This discussion is closed to new replies.