Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Code to open and show Windows Folder
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00874874
Message ID:
00874882
Views:
18
Sergey,
thanks once again for a quick answer. I checked out the MS doc and, since I like simple, found that this works just fine.

mRootDir ='G:\RODATA\'
mFolder = mRootDir + 'RO23412' && depends on what RO customer is viewing.
run /n EXPLORER ,&mFolder

It opens the desired folder and the user can change the view type to detail, large icons, etc.


>>I have a customer that puts a lot of associated items (Word, Excel docs, pictures, etc) for each repair order in windows folders. How could I open a given windows folder from within VFP 6? ie Folder name G:\STUFF\RO23531. Each RO would have it's own folder off of Stuff. The folder needs to open showing all contents so the user can double click on word, excell or picture file to launce whatever applicaton in the normal windows way.
>>
>>TIA.
>
>See Re: Open My Computer Thread #834144 Message #834358
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform