|
-
Nov 21st, 2002, 03:31 PM
#1
Thread Starter
Frenzied Member
(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:
set objFolder2 = objFS.GetFolder("D:\inetpub\wwwroot\lxr\AutoRes\process")
for each item in objFolder2.Files
strFilePath3 = item.path
strFilePath3 = replace(strFilePath3, "D:\Inetpub\WWWroot\lxr\AutoRes\process\", "")
response.write Server.MapPath(strFilePath3)
objFS.MoveFile Server.MapPath(strFilePath3), "D:\inetpub\wwwroot\lxr\AutoRes\import\"
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.
-
Nov 21st, 2002, 03:37 PM
#2
Thread Starter
Frenzied Member
nevermind... i got it now.
VB Code:
set objFolder2 = objFS.GetFolder("D:\inetpub\wwwroot\lxr\AutoRes\process")
for each item in objFolder2.Files
strFilePath3 = item.path
objFS.MoveFile strFilePath3, "D:\inetpub\wwwroot\lxr\AutoRes\import\"
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|