Click to See Complete Forum and Search --> : fs.MoveFile


OPETH
04-11-2007, 08:18 AM
<%
dim tasi
set tasi=Server.CreateObject("Scripting.FileSystemObject")
fs.MoveFile "c:\web\*.gif","c:\images\"
set tasi=nothing

%>

I dont run this codes.Why dont run?

TheBearMay
04-11-2007, 08:32 AM
Assuming the paths are correct try:


<%
dim tasi
set tasi=Server.CreateObject("Scripting.FileSystemObject")
tasi.MoveFile "c:\web\*.gif","c:\images\"
set tasi=nothing

%>

OPETH
04-11-2007, 08:46 AM
<%
dim tasi
set tasi=Server.CreateObject("Scripting.FileSystemObject")
tasi.MoveFile "C:\inetpub\wwwroot\web\*.gif","C:\inetpub\wwwroot\images\"
set tasi=nothing

%>

I dont run in localhost :S