#35791 - 2003-01-30 12:10 AM
copy files
|
Gijs
Fresh Scripter
Registered: 2003-01-29
Posts: 6
Loc: Nederland
|
Hi,
I want to copy two fonts from the server to the client workstations. So I tried
COPY "\\fs1\netlogon\font.ttf" "c:\windows\fonts"
but this result into an error (unkown command).
Please, tell me how I can fix this?
Thanks
|
|
Top
|
|
|
|
#35792 - 2003-01-30 12:34 AM
Re: copy files
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
That line line certainly looks correct. Your error is probably on a line around that line. Post more of your script. You probably have missed a quote, mis-spelling, or have an extra character nearby.
|
|
Top
|
|
|
|
#35793 - 2003-01-30 12:37 AM
Re: copy files
|
Beelzel
Fresh Scripter
Registered: 2002-03-08
Posts: 46
Loc: DC Metro area
|
Please look at this ... Copy problem
_________________________
If not for the last minute ... nothing would get done ...
|
|
Top
|
|
|
|
#35794 - 2003-01-30 12:49 AM
Re: copy files
|
Gijs
Fresh Scripter
Registered: 2003-01-29
Posts: 6
Loc: Nederland
|
OK,
this is the whole script:
; test copy fonts
settime "\\fs1" CLS
COPY \\fs1\NETLOGON\font.ttf c:\Windows\fonts
USE H: "\\fs1\balie"
exit [ 29. January 2003, 12:49: Message edited by: Gijs ]
|
|
Top
|
|
|
|
#35796 - 2003-01-29 02:30 PM
Re: copy files
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Gijs,
Quick comment: You should use a generic variable for Windows..
COPY \\fs1\NETLOGON\font.ttf %windir%\fonts
HTH,
Kent
|
|
Top
|
|
|
|
#35798 - 2003-01-29 03:05 PM
Re: copy files
|
Gijs
Fresh Scripter
Registered: 2003-01-29
Posts: 6
Loc: Nederland
|
ok,
I have tried code:
COPY \\fs1\NETLOGON\font.ttf %windir%\fonts
and code:
COPY "\\fs1\NETLOGON\font.ttf" "%windir%\fonts"
but on both I get the same error, unknown command
|
|
Top
|
|
|
|
#35800 - 2003-01-29 03:48 PM
Re: copy files
|
Gijs
Fresh Scripter
Registered: 2003-01-29
Posts: 6
Loc: Nederland
|
\\fs1\netlogon\Kix32.exe \\fs1\netlogon\script_gijs.scr
script_gijs.scr is the script with the copy command
|
|
Top
|
|
|
|
#35803 - 2003-01-29 04:01 PM
Re: copy files
|
Gijs
Fresh Scripter
Registered: 2003-01-29
Posts: 6
Loc: Nederland
|
both, but I usually test from the command line
|
|
Top
|
|
|
|
#35804 - 2003-01-29 04:03 PM
Re: copy files
|
Gijs
Fresh Scripter
Registered: 2003-01-29
Posts: 6
Loc: Nederland
|
quote: ... and what are you using to edit the script?
notepad
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|