Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program does not execute when compiled into Exe program
Message
From
12/11/2016 17:08:40
Sonny Tabano
Trams Printwork, Inc.
Mabalacat, Philippines
 
 
To
12/11/2016 16:42:01
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01643256
Message ID:
01643259
Views:
49
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
Previous
Reply
Map
View

Click here to load this message in the networking platform