Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 14th April 2008, 14:37   #1
jrhutch
Junior Member
 
Join Date: Feb 2008
Location: Austin, TX
Posts: 11
Copying files from a network share that contains the '$' character

I am having a problem getting NSIS to copy files from a network directory. I think the problem may be that the shared folder contains the $ character.

Here is an example of what I'm doing:

There are two machines on a local network, one is the master, and one is a secondary machine. The master machine has it's software updated normally, and the secondary machine just needs to pull the same files over the network. The master machine has it's 'D' drive shared as 'D$'

I have tried all of the following:

CopyFiles "\\MasterComputer\d$$\dir\*.*" d:\SecondaryDir

ExecWait "xcopy \\MasterComputer\d$$\dir\*.* d:\SecondaryDir"

nsExec::ExecToStack "$SYSDIR\xcopy.exe" "\\MasterComputer\d$$\dir\*.*" "d:\SecondaryDir"

And none of them will copy any files. I know the SecondaryDir is created beforehand, it just won't copy the files there. What am I doing wrong? Am I not able to do name resolution in NSIS?
jrhutch is offline   Reply With Quote
Old 14th April 2008, 18:24   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Try putting that string in a message box and see what comes out.

Anyway, the solution is probably:
code:
StrCpy $0 \\mastercomputer\d$$
CopyFiles $0\dir\*.* d:\sec


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump