Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Failure to backup
Message
From
27/10/2006 14:09:05
 
 
To
27/10/2006 14:04:42
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows Millenium
Network:
Windows ME
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01165130
Message ID:
01165132
Views:
13
>Hello
>
>In my old system (@12,. ) I have used the following command to backup my data using lha;
>
>
>procedure backup
>run lha a bkdbf *.dbf
>copy file bkdbf.lzh to d:\backup
>
>
>But while trying to do so in a form I am getting the error message file 'bkdbf.lzh' does not exist.
>
>Please help
>
>Chandan



Make sure the path you think you are using is the same one the system is using. IOW, if your old routine creates 'bkdbf.lzh' in some folder and your prg says "copy file bkdbf.lzh to d:\backup" it is expecting it in the same folder, which may not be the case.
cFolder = "c:\temp\"  && example
IF FILE(cFolder+"bkdbf.lzh")
   copy file (cFolder+"bkdbf.lzh") to d:\backup
ELSE
  * error, file not found
ENDIF
[Update]: Also, make sure it has finished processing, as Tracy said. Although I would not use a loop as her example, but a synchronous call like through Windows API: ShellExecute or WSH: Shell.Run()


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform