Page 1 of 1 1
Topic Options
#35791 - 2003-01-30 12:10 AM copy files
Gijs Offline
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 Offline
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.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#35793 - 2003-01-30 12:37 AM Re: copy files
Beelzel Offline
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 Offline
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
#35795 - 2003-01-29 02:29 PM Re: copy files
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Have you tried either of these?

code:
  

COPY \\fs1\NETLOGON\font.ttf c:\Windows\fonts\

OR
code:
COPY \\fs1\NETLOGON\font.ttf c:\Windows\fonts\font.ttf

_________________________
Eric

Top
#35796 - 2003-01-29 02:30 PM Re: copy files
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#35797 - 2003-01-29 02:34 PM Re: copy files
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Plus :

You should use quotes within your copy command [Razz]
_________________________



Top
#35798 - 2003-01-29 03:05 PM Re: copy files
Gijs Offline
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
#35799 - 2003-01-29 03:41 PM Re: copy files
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
How are you calling the KiXtart script?
Top
#35800 - 2003-01-29 03:48 PM Re: copy files
Gijs Offline
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
#35801 - 2003-01-29 03:50 PM Re: copy files
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ummm ... from a batch or Command line ?
_________________________



Top
#35802 - 2003-01-29 04:00 PM Re: copy files
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
... and what are you using to edit the script?
Top
#35803 - 2003-01-29 04:01 PM Re: copy files
Gijs Offline
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 Offline
Fresh Scripter

Registered: 2003-01-29
Posts: 6
Loc: Nederland
quote:
... and what are you using to edit the script?

notepad

Top
#35805 - 2003-01-29 04:06 PM Re: copy files
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You should also copy under an local administrative account under Windows NT/2000/XP. Also, you should provide some clean copying and error checking like
code:
$source='\\fs1\netlogon\'
$ttf='font.ttf'
$dest='%WINDIR%\fonts\'
if not exist($dest+$ttf)
copy $source+$ttf $dest+$ttf
? 'Error = '+@ERROR+' - '+@SERROR
endif

A lot of debugging could be prevented by writing clean code inthe first place!

Or take a look at the UpdateFile() UDF in the UDF Forum.
_________________________
There are two types of vessels, submarines and targets.

Top
#35806 - 2003-01-29 04:10 PM Re: copy files
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Use DEBUG ON in the first line of your KiXtart script for debugging purposes.
_________________________
There are two types of vessels, submarines and targets.

Top
#35807 - 2003-01-29 04:27 PM Re: copy files
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
I see you are calling your script from the netlogon share. Are you sure that it has replicated from the export directory OK?

As a simple test, create a new file from scratch on a local drive (C: or whatever) and call it. Perhaps you have an odd character lurking in the original script file.

Top
#35808 - 2003-01-29 04:31 PM Re: copy files
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
if there would be kix-version without copy-command, I would buy this.

rather I still am convinced that there is error in script.
my suggestion would be to make new script for this copy and write only:
COPY '\\fs1\NETLOGON\font.ttf' '%windir%\fonts'

in it.
if there is unknown commmand still....
well, I'll tell you more.
_________________________
!

download KiXnet

Top
#35809 - 2003-01-29 04:34 PM Re: copy files
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Oh yeah ... btw.

What KiX Version do you use ??
_________________________



Top
#35810 - 2003-01-29 04:39 PM Re: copy files
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Are you actually sure that the script is running at all?
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.086 seconds in which 0.038 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org