Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Icon Program/Start In directories; Default Printer
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00134143
Message ID:
00134147
Views:
11
>Everyone has been so helpful with our previous questions, we've got two more that someone out there can help us with.
>
>1. Is there a command that will return the name of the Windows Default Printer?

You can use SET('PRINTER', 2) for the default printer

>2. We are looking for a way to pull the drive and path from the Target and Start In fields in the Icon Properties. It looks like using SYS(5) + CURDIR() gets the Start In path, but we'd like to know if there is a better, safer method. We have not been able to find any reference to getting the path from the Target.

You mean from the short link file? If so, download the Shortcut Link files DLL that I wrote. It's in the Files (file cabinet) Win32 and other APIs section. It comes with a help file (VFP syntax), that can show you how to do this.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform