Fontcopy script to run at logon in AD 2000 on XP machines
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Fontcopy script to run at logon in AD 2000 on XP machines

 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming
Author Message
TxVics
Guest





Posted: Tue Jan 04, 2005 1:07 am    Post subject: Fontcopy script to run at logon in AD 2000 on XP machines Reply with 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!
Back to top
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 Reply with quote

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!
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB