mIRC Home    About    Download    Register    News    Help

Print Thread
#61532 23/11/03 10:03 AM
Joined: Nov 2003
Posts: 2
D
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Nov 2003
Posts: 2
Ugh, fopen, I now hate fopen. For some dumb reason or another(a reason I'll probably never understand, even with me having had the 16-bit mIRC way back when), mIRC will not read long filenames. I keep my copy of mIRC along with my script under My Documents, and when I use $mircdir, I get errors:

* fopen unable to create 'readme' (C:\MY)

Why can't mIRC handle folders with spaces yet? I'm gonna hate coding another variable into mIRC just to get the old DOS foldername...

Yes, I'm using mIRC 6.12.

#61533 23/11/03 10:53 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Put double-quotes around the filename. eg. /fopen fhandle $+(", $mircdir, moo.txt, ").


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#61534 23/11/03 12:20 PM
Joined: Dec 2002
Posts: 44
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Dec 2002
Posts: 44
hey man, if you use spaces in a command's parameter, in a language that separates parameters by spaces, then isn't it unanimity, that u should use "QUOTES FOR SPACES"? smile damn, sorry for bad english and bifidus esensided probiotic sentencial mistakes laugh


sorry for my bad english
watch out when you're in front of my scalar howitzer smile

Punks not dead!
#61535 24/11/03 10:49 AM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
or use $shortfn($mircdir)


If it ain't broken, don't fix it!
#61536 24/11/03 10:33 PM
Joined: Nov 2003
Posts: 2
D
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Nov 2003
Posts: 2
I used quotes, wound up with more errors, finally got ticked and wound up deleting $mircdir $+

I guess this works better, since now it goes straight from the working directory, and I use less code.

#61537 25/11/03 01:29 PM
Joined: Dec 2002
Posts: 37
O
Ameglian cow
Offline
Ameglian cow
O
Joined: Dec 2002
Posts: 37
I've been using /fopen and related commands extensively myself, and I have not run into any of the problems you describe. That implies that I use quoted filenames. I think this is a PEBKAC problem.


Bloop

Link Copied to Clipboard