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: 679
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.

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

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

Or is it something else you are looking for?

Ruud

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

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.

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

Registered: 2006-08-16
Posts: 679
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.

Regards,

Brad

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

Registered: 2001-06-05
Posts: 22339
Loc: OK
I wouldn't mess with it.
from command prompt:
 Code:
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

Top
Page 1 of 1 1


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

Who's Online
1 registered (Dr_Rick) and 178 anonymous users online.
Newest Members
PureKoala, 7hjd2, jswizz, Andrewpaul, emmamillathompso
17649 Registered Users

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

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