Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to rename a file within foxpro
Message
From
13/07/2000 08:48:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to rename a file within foxpro
Miscellaneous
Thread ID:
00391722
Message ID:
00391722
Views:
349
Hi everybody,


Inside a foxpro prg I want to rename a *.tmp file to it's final name. I though a simple RUN command would do the job but it's seems it does not accept variables.

This doesn't work:
lcFichier = "\FolderA\Filename.tmp" && this is just a text file
RUN /N rename &lcFichier test1.ttt

error = something like cannot execute run command or illegal run command

This doesn't work:
lcCommand = "RUN /N "+ lcFichier + " test1.ttt"
&lcCommand

This work:
RUN /N rename \FoldeA\Filename.tmp test2.ttt

Any ideas?

TIA
Diane Robitaille eng.
Next
Reply
Map
View

Click here to load this message in the networking platform