Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shellexecute and Windows 8
Message
From
10/04/2014 15:49:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 8
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01598440
Message ID:
01598471
Views:
61
REGSVR32 will require Admin rights. They user will get a prompt to either elevate to Admin or enter the Admin username/password


>Here is the code.....
>
>
>local lcCmd, lcParams, lcPathReg
>
>lcPathReg = “c:\pharamcy\”
>lcCmd = "REGSVR32"
>
>lcParams = " /s /u "  + lcPathReg
>
>
>DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
>        INTEGER lnHWnd, ;
>        STRING lcAction, ;   
>        STRING lcTarget, ;
>        STRING lcExeParams, ;
>        STRING lcDefDir, ;
>        INTEGER lnShowWindow
>
>lnResult = ShellExecute( 0, 'open', lcCmd, lcParams, "", 1 )
>
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform