Jump to content

Recommended Posts

Posted (edited)

$DirCreate = DirCreate('/')
ConsoleWrite($DirCreate & @CRLF); Returns 1

$DirCreate = FileExists('/')
ConsoleWrite($DirCreate & @CRLF)

Success: Returns 1.

Failure: Returns 0 if there is an error creating the directory.

The problem is that if I have tons of lines of code & tons of consolewrite() return values, it will return 1 & I will think that folder creation was successful & waist my time searching for a problem somewhere else. It took me almost a whole hour to figure out why was my code bugged.

So if possible plz fix it. Ty.

Edit same problem goes for FileExists

Edited by goldenix
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Posted

my sample was intentional:

$DirCreate = DirCreate('/Flowers gallry II/')
ConsoleWrite($DirCreate & @CRLF)
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Posted (edited)

my sample was intentional:

$DirCreate = DirCreate('/Flowers gallry II/')
ConsoleWrite($DirCreate & @CRLF)

Hi,

works perfect. Folder is created on root of c: drive, as expected (in my case.Check your roots...)

;-))

Stefan

Edited by 99ojo

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...