MoveFile

I've having a strange problem with MoveFile.My program works this way.First, it will create 4 different files if they do not exists e.g. XXShop.mdb where XX is the code of the shop.After quite a bit of processing, I'll check if there is any data in the XXShop.mdb files.

If there is, I'll set a moveFlag to 1 then use MoveFile to move the files from current location to another destination.The strange thing is, the first 3 files work ok. But the last file will ALWAYS get permission denied error.

View Replies


ADVERTISEMENT

MoveFile Error

I want to move a file between two servers,one running my asp code and the other containing a sql database.For this,I'm using MoveFile.My problem is that I'm getting this error:

File not found.

My code looks like this:

fs.MoveFile Server.MapPath("upload/tmb.xls"), " mav035aTestAssetDB_test mb.xls"

I did a check on the page,using FileExists,and it seems like the 2nd file does not exist on the server,although I can see it and access it through Windows.What could be the cause of my error?The server permissions or did I do something wrong?

View Replies View Related

File System Object MoveFile

Here is my code:

fileSysObj.MoveFile (Server.MapPath(selectedFile), destination);

the variables selectedFile and destination are valid paths to valid directories.

I submit the form and the file has been moved to from the source directory but does not appear to get moved into the destination directory. Any workarounds are alternative methods are welcomed.

I have tried the Move method but this has the same result as MoveFile. Also the Copy and CopyFile methods have the same result also (the file remains in source obviously)

View Replies View Related

CopyFile And MoveFile Doesn't Accept Wildcards

I have a website and I'm having users upload their homemade mp3s to my server. Anyway I want to have random filenames attached.

The user uploads from their computer
C:DocumentsMusicsong.mp3

I want it to be saved on my server as
d:wwwrootmywebsitemywebsite.comwwwuploadsfnm 8uy.mp3

I have tried the MoveFile and the CopyFile method but when I use wildcards in the Source it gives me a Path Not Found error .....

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved