Mkdir function
-
Hello all, I need a small help in resolving an error I want to create a folder with time and date I am usingthe code, MkDir ("c:\moved\PK3\" + str(Hour(SystemTime)) + "." + str(Minute(SystemTime)) + " " + str(Day(Systemdate)) + "_" + str(Month(Systemdate)) + "_" + str(Year(Systemdate))) for creating a folder inside " c:\moved\PK3\ " Most of the time its work fine. But some times an error will come as "Path/file access error". Its not happen often . How to resolve this error? Thanks and regrds Denny
-
Hello all, I need a small help in resolving an error I want to create a folder with time and date I am usingthe code, MkDir ("c:\moved\PK3\" + str(Hour(SystemTime)) + "." + str(Minute(SystemTime)) + " " + str(Day(Systemdate)) + "_" + str(Month(Systemdate)) + "_" + str(Year(Systemdate))) for creating a folder inside " c:\moved\PK3\ " Most of the time its work fine. But some times an error will come as "Path/file access error". Its not happen often . How to resolve this error? Thanks and regrds Denny
Post the full exception detail include the full message, stack trace and everything else. From the info you've given my best guess is that you are trying to create a directory that already exists. (because you've already run the method once in this minute)
Simon
-
Post the full exception detail include the full message, stack trace and everything else. From the info you've given my best guess is that you are trying to create a directory that already exists. (because you've already run the method once in this minute)
Simon