mIRC Home    About    Download    Register    News    Help

Print Thread
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

Joined: Mar 2003
Posts: 1,271
L
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
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

Joined: Jun 2003
Posts: 15
Z
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
¯¯¯¯¯¯¯¯¯¯

Link Copied to Clipboard