Information générale
Catégorie:
Codage, syntaxe et commandes
Hi george, thanks for the tip but I seem to be having problems making this work.
Here is the following code I put in:
lcsourcefile = 'd:\assignment\test\ws_ftp.txt'
lcdestination = 'd:\assignment\wp_ftpmoved.txt'
declare integer movefile in win32api ;
string @lpexistingfilename, ;
string @lpnewfilename
llsuccess = (movefile(@lcsourcefile, @lcdestination) # 0)
and here is the error message I keep getting
CANNOT FIND ENTRY POINT MOVEFILE IN DLL
The filenames that I will be using to move (if I can get this to work ) will be coming out of an array. So actually I will need to move these file dynamically without know what the filename is from source, but I will give a new directory and filename as I move them to destination.
I also Tried the second portion of your hint:
lcsourcefile = 'd:\assignment\test\ws_ftp.txt'
lcdestination = 'd:\assignment\wp_ftpmoved.txt'
oFS = Createobject('scripting.filesystemobject')
ofs.movefile(lcsourcefile, lcdestination)
and here is the error I got from it
OLE error code 0x800a0035 unknow com status code
Have you any suggestions, I would much appreciate it.
Thank you
Nick Patel
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement