mIRC Home    About    Download    Register    News    Help

Print Thread
/dcc get <folder> --- why doesn't this work? #44379 27/08/03 03:10 PM
Joined: Aug 2003
Posts: 14
M
MrZebra Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Aug 2003
Posts: 14
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

Re: /dcc get <folder> --- why doesn't this work? #44380 27/08/03 06:31 PM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: /dcc get <folder> --- why doesn't this work? #44381 27/08/03 07:26 PM
Joined: Aug 2003
Posts: 14
M
MrZebra Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Aug 2003
Posts: 14
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

Re: /dcc get <folder> --- why doesn't this work? #44382 11/12/05 07:16 PM
Joined: Jun 2003
Posts: 15
Z
ZeBoxx Offline
Pikka bird
Offline
Pikka bird
Z
Joined: Jun 2003
Posts: 15
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 ?


__________
ZeBoxx
ŻŻŻŻŻŻŻŻŻŻ