Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Mkdir function

Mkdir function

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dennymw
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • D dennymw

      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

      S Offline
      S Offline
      Simon P Stevens
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • S Simon P Stevens

        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

        D Offline
        D Offline
        dennymw
        wrote on last edited by
        #3

        Ya Simon, U are right. whn i tried to run the code in minute less time only the the problem come..Thanks for your information :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups