Page 1 of 1 1
Topic Options
#193331 - 2009-04-02 01:39 PM Copying Files
david_e Offline
Just in Town

Registered: 2008-11-05
Posts: 4
I am trying to copy a single file to the c: drive of all the machines on our network and i am using the following command line;

copy "\\nas01\Staffshr\SIMS Templates\QuickLetterTemplate.doc" "c:\program files\sims\sims.net"

When the kix script runs it completes succesfully but the file does not appear in the folder. Could somebody advise on what i may be doing wrong?

Thanks

David

Top
#193332 - 2009-04-02 02:28 PM Re: Copying Files [Re: david_e]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Welcome to KORG!

If the destination spec is a directory, you need a trailing "\".

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#193334 - 2009-04-02 02:53 PM Re: Copying Files [Re: Glenn Barnas]
david_e Offline
Just in Town

Registered: 2008-11-05
Posts: 4
Hello Glenn

I tried that but it didnt work, i have manually copy and pasted the files from the locations under the usergroup i have assigned it to and there is no problem with the permissions and the rest of the script works without a problem.

IF (INGROUP("Staff Group") OR INGROUP("Admin Staff Group"))

; Staff Home Directory
USE H: "\\172.22.0.11\STAFF\" + @USERID

; Student Shared directory
USE I: "\\172.22.0.11\SHARED"

; Staff Shared directory
USE T: "\\172.22.0.11\STAFFSHR"

; Report Master II Directory
USE v: "\\whalley02\ReportMasterII"

; Sims Directory
USE S: "\\WHALLEY03\SIMSDIR"

; Staff Shared directory
USE P: "\\172.22.0.11\STUDENTS"

copy "V:\Report Master III.lnk" "%USERPROFILE%\desktop\Report Master III.Lnk"

copy "\\Whalley01\Shortcuts\Clipbank.lnk" "%USERPROFILE%\desktop\Clipbank.Lnk"

copy "\\nas01\Staffshr\SIMS Templates\QuickLetterTemplate.doc" "c:\program files\sims\sims.net\"

ENDIF

Top
#193335 - 2009-04-02 03:48 PM Re: Copying Files [Re: david_e]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Add this after your copy

@Error ?
@Serror ?

What does it tell you?
_________________________
Today is the tomorrow you worried about yesterday.

Top
#193336 - 2009-04-02 04:16 PM Re: Copying Files [Re: Gargoyle]
david_e Offline
Just in Town

Registered: 2008-11-05
Posts: 4
It says;
mapping123
filename, directory name or volume label syntax is incorrect.

thanks

David

Top
#193337 - 2009-04-02 04:25 PM Re: Copying Files [Re: david_e]
david_e Offline
Just in Town

Registered: 2008-11-05
Posts: 4
aarrgghhh thanks for everybodys help but i have just found the problem, i dont know if anybody else has experience of sims but it tests the patience of anyone who uses it and the file path to the correct folder is

C:\Program Files\SIMS\SIMS .net

didnt see the 'space' after the sims it now works

thank you

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
1 registered (Allen) and 363 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.131 seconds in which 0.101 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