mIRC Home    About    Download    Register    News    Help

Print Thread
check to see if a folder exists #189863 12/11/07 06:55 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
how can i check if a certain folder exists in my script directory, and if not, then create it?

Re: check to see if a folder exists [Re: pouncer] #189864 12/11/07 06:55 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
var %dir = c:\bla\bla
if (!$isdir(%dir)) { .mkdir %dir }

Re: check to see if a folder exists [Re: pouncer] #189869 12/11/07 07:37 PM
Joined: Jun 2006
Posts: 508
D
deegee Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
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...