Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening text file on startup
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586168
Message ID:
00586299
Views:
12
>Hi there,
>
>I would like to launch my application as usual, but on the start up also launch the text file help in a notepad window from the form. The window should ideally be independant of the main foxpro window because the application window is small and also because the user needs to switch between the application and the help. In effect have the application and the help as seperate menu bar items....
>
>Does anybody have any ideas, any feedback is greatly appreciated as always,
>
>Regards,
>
Simon,

If the Windows Script Host is an option, it's easy to use the WSHShell object's Run method.
oShell = CREATEOBJECT("WScript.Shell")
oShell.Run("mytext.txt", 9) && SW_RESTORE
It will use the default application associated with a txt file (in most cases Notepad).
George

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

Click here to load this message in the networking platform