mIRC Home    About    Download    Register    News    Help

Print Thread
P
pouncer
pouncer
P
how can i check if a certain folder exists in my script directory, and if not, then create it?

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Code:
var %dir = c:\bla\bla
if (!$isdir(%dir)) { .mkdir %dir }

Joined: Jun 2006
Posts: 506
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 506
You don't really need to check, if you /mkdir an existing folder there's no error. wink

No need to .silence mkdir either, there's no output...


Link Copied to Clipboard