Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can not Change Destination Directory
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092787
Message ID:
00093031
Views:
27
<snip>
>There are two ways to get a program to load when Windows 95 starts. One, and probably prefereable, is to install the item in the Startup group. The other way is to add the item to the LOAD= line in the WIN.INI file, in the [windows] section. Either can be done programmatically in a program you create to be run after the setup program (there's a post setup executable file you can specify in Step 4).
>

A third method exists as well - making an entry in the registry. You can add a new value to either the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run or HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices registry keys to add programs to the startup; you also have the RunOnce and RunServicesOnce available as options if you want to trigger the application exactly one time after the next restart of Win95. The RunServices and RunServicesOnce key families are the only way to add a program so that it runs prior to the network login dialog being completed AFAIK.

Ed

>To install another copy of your program in the Startup folder, you can initiate a DDE conversation with the Program Manager. I wrote an article on how to do this in the April, 1997 issue of FoxPro Advisor.
>
>Adding the information to WIN.INI can be done through the Windows API calls, GetProfileString() (so that the current contents aren't completely removed) and WriteProfileString().
>
>hth,
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform