Results 1 to 4 of 4

Thread: create a folder

  1. #1

    Thread Starter
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118
    Can anyone tellme how to create a folder in windows temp folder, the temp folder can be in C or D drive

    in this example i am hardcoding the path

    Set MyFileObject = Server.CreateObject("Scripting.FileSystemObject")
    MyFileObject.CreateFolder "C:\Temp" & "Myfolder"


    Sonia

  2. #2

    Thread Starter
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118
    Sorry i mean here i wan to get the Temp dir path
    Is there any way i can get the physical path???

    Sonia

  3. #3
    Guest
    Try this:


    Code:
    Set MyFileObject = Server.CreateObject("Scripting.FileSystemObject") 
    MyFileObject.CreateFolder MyFileObject.GetSpecialFolder(TemporaryFolder) & "\Myfolder"

  4. #4

    Thread Starter
    Lively Member harsoni's Avatar
    Join Date
    Oct 2000
    Posts
    118

    Smile

    It works...

    Thanks a lot..

    Sonia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width