Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restricting GETFILE() & PUTFILE() in VFP6.0
Message
 
To
05/10/2004 03:19:25
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00948721
Message ID:
00948723
Views:
29
Hi Gavin,
If I understood You right, You want the user to save file, but You decide from which dir You import the file. Am I right?
If so, You can use the GETFILE() or PUTFILE(), after that You get just a file name & make the fullpath to it, i.e.
   user_f_name = GETFILE()
   IF .NOT. EMPTY(user_f_name)
      my_file = folder_of_your_own + JUSTFNAME(user_f_name)
      && Your code here
   ENDIF
>Hi All,
>
>Is it possible to restrict GETFILE() & PUTFILE() so that the default directory can't be changed? E.g I want to restrict a user to exporting files to E:\APPS\OUTPUTFILES, but I still want the GETFILE() dialog to appear so that they can name their file, but not choose another directory. Similarly I want to restrict users to importing files from a certain directory. Is this possible in VFP6?
>
>Hope this makes sense
>
>Thanks,
>Gavin.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform