Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Update Regitry One Time with a '.REG' file
Message
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00743267
Message ID:
00743321
Views:
10
Allan,

In this case you can use ShellExecute.

>Sergey,
>
>Is WSH a 'function' that can be disabled in Windows Explorer or some other security patch from MS?
>I am looking for a command that is * guaranteed * to be sucessful on Windows 98+.
>TIA.
>
>
>>You can use WSH (Windows Script Host) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsMthRun.asp
oShell = CREATEOBJECT('WScript.Shell')
>>oShell.Run(lcMyFile)
or ShellExecute API #12636.
>>
>>>We have an application that runs as an '.exe' and would like to update the registry with the contents of a file 'abc.reg'.
>>>Is the 'RUN abc.reg' the correct command to use to perform this task?
>>>
>>>TIA.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform