TxVics
Guest
|
Posted:
Tue Jan 04, 2005 1:07 am Post subject:
Fontcopy script to run at logon in AD 2000 on XP machines |
|
|
I've created a batch file and set it up to run under User
Configuration/Windows/Scripts/Logon.
I've tried variations using Copy, XCopy and Robocopy. None will work.
if exist c:\FontInstall_1_05.log goto end
xcopy \\network_path\*.ttf C:\WINDOWS\Fonts\ /c
xcopy \\network_path\FontInstall_1_05.log c:\WINDOWS\Fonts\
pause
:end
I know the script runs because it pauses and I can see the statements that
it affirms the files were copied. I've also already verified that the users
have rwx permissions on the fonts folder.
Two problems:
1. It copies all the files every time, regardless of whether or not the .log
file exists. It is not skipping to the end statement.
2. The fonts get copied, but they don't show up. They exist (or so the dos
prompt tells me when I do a dir on the fonts folder) but I can't see them in
explorer, and they are not available in Word or any other package.
Help, please!
Thanks! |
|
Phil Johnstone
Guest
|
Posted:
Wed Jan 05, 2005 9:45 pm Post subject:
RE: Fontcopy script to run at logon in AD 2000 on XP machine |
|
|
Try this:
IF NOT EXIST \\network_path\FontInstall_1_05.log xcopy \\network_path\*
C:\WINDOWS\Fonts\ /C /Y
If the file FontInstall_1_05.log exists, the fonts will exist, so the copy
will not occur.
If the file FontInstall_1_05.log does not exist, the fonts will not exist,
so the copy of everything in \\network_path\ will be copied to
c:\windows\fonts.
"TxVics" wrote:
| Quote: | I've created a batch file and set it up to run under User
Configuration/Windows/Scripts/Logon.
I've tried variations using Copy, XCopy and Robocopy. None will work.
if exist c:\FontInstall_1_05.log goto end
xcopy \\network_path\*.ttf C:\WINDOWS\Fonts\ /c
xcopy \\network_path\FontInstall_1_05.log c:\WINDOWS\Fonts\
pause
:end
I know the script runs because it pauses and I can see the statements that
it affirms the files were copied. I've also already verified that the users
have rwx permissions on the fonts folder.
Two problems:
1. It copies all the files every time, regardless of whether or not the .log
file exists. It is not skipping to the end statement.
2. The fonts get copied, but they don't show up. They exist (or so the dos
prompt tells me when I do a dir on the fonts folder) but I can't see them in
explorer, and they are not available in Word or any other package.
Help, please!
Thanks! |
|
|