Results 1 to 2 of 2

Thread: (ASP) server.mappath showing wrong path. **Resolved**

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    (ASP) server.mappath showing wrong path. **Resolved**

    I am getting all confused here... I am trying to move some files from one directory to another
    VB Code:
    1. set objFolder2 = objFS.GetFolder("D:\inetpub\wwwroot\lxr\AutoRes\process")
    2. for each item in objFolder2.Files
    3.     strFilePath3 = item.path
    4.     strFilePath3 = replace(strFilePath3, "D:\Inetpub\WWWroot\lxr\AutoRes\process\", "")
    5.     response.write Server.MapPath(strFilePath3)
    6.     objFS.MoveFile Server.MapPath(strFilePath3), "D:\inetpub\wwwroot\lxr\AutoRes\import\"
    7. next
    thanks
    Last edited by msimmons; Nov 21st, 2002 at 03:38 PM.
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  2. #2

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    nevermind... i got it now.
    VB Code:
    1. set objFolder2 = objFS.GetFolder("D:\inetpub\wwwroot\lxr\AutoRes\process")
    2. for each item in objFolder2.Files
    3.     strFilePath3 = item.path
    4.     objFS.MoveFile strFilePath3, "D:\inetpub\wwwroot\lxr\AutoRes\import\"
    5. next
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

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