mIRC Homepage
Posted By: MrZebra /dcc get <folder> --- why doesn't this work? - 27/08/03 03:10 PM
Ok,
so I scripted a very basic thing, here goes :

ctcp *:dcc send*:*:{ mkdir $getdir $+ $nick $+ $time | dcc get $nick $+ $time }

now the problem is, on the get screen that pops up to show you the progress of the get...it SAYS its saving to the right folder, the new one i just created. And the folder is created and is there...
BUT MIRC still saves the file to the basic $getdir ...

any ideas why mirc is doing this? how to stop it?
Z
This line works for me:

Code:
ctcp *:dcc send*:*:{ 
[color:green]  ; I use $ctime and not $time.[/color]
[color:green]  ; Using $ctime has many advantages in what may come later on.[/color]
  mkdir $+(",$getdir,$nick,$ctime,") 
  dcc get $+(",$getdir,$nick,$ctime,")
}


possible reasons:
1. mIRC didn't like spaces in your target path
2. : is not a valid character in a directoryname, so make sure you don't have them in your $time output
Locutus, thanks for the post.

Yeah I apparently had spaces in my target path, but when I removed the spaces, it worked great.

d'oh!

Thanks again.

Z
Quote:
1. mIRC didn't like spaces in your target path

Although it doesn't appear to have any problems with a space in the path:
Code:
mkdir "c:\hello world"


Multiple spaces get collapsed to 1:
Code:
mkdir "c:\hello   world"

results in the folder "hello world" being created.

Does anybody have any ideas on how to get around this one ?
© mIRC Discussion Forums