Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete / Copy files
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00638661
Message ID:
00638684
Views:
14
>>SCAN
>>cTableName = SUBSTR(TEMPDBFFIX.TABLE, AT('\', TEMPDBFFIX.TABLE,1)+1)
>>cFileName = lcTemplatePath + 'TEMPLATE\DATA\' + TRIM(cTableName) + '.*'
>>*-- Delete all tables in Template Data directory
>>DELETE FILE cFileName
>>*-- Copy files from production fileshare to backup template on server
>>cTableName = OAPP.CDEFAULT + TRIM(TEMPDBFFIX.TABLE) + '.*'
>>COPY FILE cTableName TO cFileName
>>ENDSCAN
>
>What you are doing *should* work. Your problems may lie in the latency of your network or OS. If you are running a virus software, your program may be doing this too quickly.
>
>I am taking a WAG as to what exactly is wrong... if you have a specific problem or error you might want to post it.


I am not getting an error message, when the commands run it just continues like nothing was wrong but doesn't actually do anything. If I run DELETE FILE 'c:\template\data\file.dbf' in the command window it deletes it just fine, but it won't do it with the variable.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform