Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet connection box at Win. startup
Message
De
23/10/2000 16:02:03
 
 
À
23/10/2000 15:44:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00432763
Message ID:
00433160
Vues:
22
>>>>Hi,
>>>>
>>>>I have got the Internet connction Dialog box at startup, as described
>>>>on pge 11 of Visual Studio Readme.
>>>>
>>>>It says that to disable this, you may create a text file named
>>>>
>>>>"DisbleAutoConnect.reg"
>>>>
>>>>and to run that file. But how is it possible to run a file with
>>>>a ".REG" extension? I don't get it, do you?
>>>>
>>
>>A .REG file is by default handled by the default registry editor for the OS (REGEDIT or REGEDT32 depending on OS) and can be used to create registry keys or values, but cannot delete keys or values. It has an OLE "OPEN" action associated with it through the registry, like a .DOC file or .DBF file, or for that matter, a script file of some sort supported by the WSH or a similar tool. To delete as well as create, you need to create an .INF file; see the MSDN Library for documentation on the syntax and structure of a .INF file.
>>
>>>>Rolf
>>>
>>>Locate the file with Explorer and just double-click it. That will "run" it.
>
>Thanks for the heads up on deleting a key. I just exported that key (from REGEDIT), changed it's value to "N" and then was able to "run" the exported reg file just fine. This only seemed to happen on my W98 box, my W95 and W2K boxes didn't need the fix.

You can use the WSH's Wscript.Shell COM object - it has methods to create and delete registry entries, and can be called from inside VFP. I have no clue where the docs might be on that puppy; you might try the sites in my sig, or the articles from me and George on the WSH at www.vfug.org
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform