Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy a file by using parameter
Message
 
To
09/07/2001 22:47:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00528463
Message ID:
00528889
Views:
14
>I want to copy a file temp.txt to another file which's name is a variable, I can't do
>filename = "newsletter007.txt"
>run "copy temp.txt" + filename
>But I need to hard code it to
>run "copy temp.txt newsletter20010710.txt"
>and it will popup a window said "1 file copied" since it used DOS command to do the job.
>Anyone has other way to copy file in VFP that can solve the above 2 problems?

RUN /N COPY temp.txt &filename
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform