mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 20
L
limp Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 20
I'm trying to make an alias that searches for the filename that I specify whatever it may be and then removes it, and so far its working except whenever a directory that comes up with a space in the name is trying to be accessed it gets the part before the space and can't find the rest of the path. Is there anyway past this to where I can remove directories even if they have spaces in them?

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Try /remove "[color:green]c:\directory here"[/color].

Joined: Apr 2003
Posts: 20
L
limp Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 20
that still doesn't work if the directory has spaces in it...

I type something like..

/remove -b c:\WINDOWS\Temporary Internet Files\Content.IE5\25E107Q3

and the remote tells me....

* /remove: no such file 'c:\WINDOWS\Temporary'

simply because it has spaces in it -_-

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Collective's point was that you need quotes around the path name. Fex, not
C:\Program files
but
"C:\Program files"


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Apr 2003
Posts: 20
L
limp Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 20
thanks, it works now thanks to something as simple as quotations

X_X

Joined: Feb 2003
Posts: 47
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Feb 2003
Posts: 47
you can also use $shortfn(dir or filename)

that will return the filename in length of 8 characters like dos uses and is also valid as a filename.


Link Copied to Clipboard