Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program does not execute when compiled into Exe program
Message
De
12/11/2016 17:08:40
Sonny Tabano
Trams Printwork, Inc.
Mabalacat, Philippines
 
 
À
12/11/2016 16:42:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01643256
Message ID:
01643259
Vues:
50
Hi Craig,

Thank you for the reply

The copy file TO works that create a back up file into a folder as compared to the other one that copies files from a back up folder
***** 1. copy files TO backup folder that works
		       lcCurrentDir = ALLTRIM(SYS(5))+ALLTRIM(SYS(2003))
                       lcDirPath     = ALLTRIM(.txtDirPath.Value)

			oShell = CREATEOBJECT("Shell.Application")
			oDstFolder = oShell.NameSpace("&lcDirPath")

			IF VARTYPE(oDstFolder)="O"
			        oDstFolder.CopyHere("&lcCurrentDir"+"\datafile\*.*")
			ENDIF


***** 2. copy files FROM backup folder does not work
		       lcCurrentDir = ALLTRIM(SYS(5))+ALLTRIM(SYS(2003))
                       lcDirPath     = ALLTRIM(.txtDirPath.Value)

			oShell = CREATEOBJECT("Shell.Application")
			oDstFolder = oShell.NameSpace("&lcCurrentDir"+"\datafile")

			IF VARTYPE(oDstFolder)="O"
			        oDstFolder.CopyHere("&lcDirPath"+"\*.*")
			ENDIF
Sonny
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform