Page 1 of 1 1
Topic Options
#205740 - 2012-09-12 12:44 PM Manual change
BradV Offline
Seasoned Scripter

Registered: 2006-08-16
Posts: 684
Loc: Maryland, USA
I would suggest adding to the Copy command:

Assuming permissions are correct, the following will copy file.txt to the remote server

COPY "MyDir\file.txt" "\\remote-server\c$\temp"

or something to that effect.

#205766 - 2012-09-16 03:56 PM Re: Manual change [Re: BradV]
Ruud van Velsen Moderator Offline

Registered: 1999-05-06
Posts: 363
Loc: Amsterdam, The Netherlands
Copying directly to a UNC is possible today already?

Or is it something else you are looking for?


#205769 - 2012-09-16 05:13 PM Re: Manual change [Re: Ruud van Velsen]
Les Offline
KiX Master

Registered: 2001-06-11
Posts: 12734
BradV was not aware of that fact and I can only surmise that if it were mentioned in the manual that perhaps he would have become aware.

That said, the example he used is poor form as most scripts run in the user's context and non-admin users would not have access to hidden admin $ shares.
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

#205774 - 2012-09-17 06:30 PM Re: Manual change [Re: Les]
BradV Offline
Seasoned Scripter

Registered: 2006-08-16
Posts: 684
Loc: Maryland, USA
Hi Sorry,

Yes, I just meant that the description for COPY should include that it will work from one server to another with the proper syntax and permissions. From reading the description and looking at the examples, it seems to only imply that copying on the same server is allowed.



#205790 - 2012-09-21 05:36 AM Re: Manual change [Re: BradV]
Lonkero Administrator Offline
KiX Master Guru

Registered: 2001-06-05
Posts: 22344
Loc: OK
I wouldn't mess with it.
from command prompt:
Copies one or more files to another location.

COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B]
     [+ source [/A | /B] [+ ...]] [destination [/A | /B]]

  source       Specifies the file or files to be copied.
  destination  Specifies the directory and/or filename for the new file(s).

and it doesn't anywhere say that copying files to different type of paths is supported.
it is given.
I wouldn't bother making kixtart doc more n00b proof than what dos prompt is.

download KiXnet

Page 1 of 1 1

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

Who's Online
1 registered (Arend_) and 268 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.032 seconds in which 0.012 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google: