Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00271750
Message ID:
00272849
Vues:
24
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
Fil
Voir

Click here to load this message in the networking platform