mIRC Home    About    Download    Register    News    Help

Topic Options
#44379 - 27/08/03 04:10 PM /dcc get <folder> --- why doesn't this work?
MrZebra Offline
Pikka bird

Registered: 24/08/03
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

Top
#44380 - 27/08/03 07:31 PM Re: /dcc get <folder> --- why doesn't this work?
LocutusofBorg Offline
Hoopy frood

Registered: 23/03/03
Posts: 1271
Loc: Sunnydale, CA
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

Top
#44381 - 27/08/03 08:26 PM Re: /dcc get <folder> --- why doesn't this work?
MrZebra Offline
Pikka bird

Registered: 24/08/03
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

Top
#44382 - 11/12/05 07:16 PM Re: /dcc get <folder> --- why doesn't this work?
ZeBoxx Offline
Pikka bird

Registered: 10/06/03
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
ŻŻŻŻŻŻŻŻŻŻ

Top