Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It worked like a charm
Thanks again Tom ----- Tom Ogilvy wrote: ---- i Shell("C:\WINDOWS\REGEDIT.EXE C:\RESTRICT.REG", 1 works, the Shell("C:\WINDOWS\REGEDIT.EXE /s C:\RESTRICT.REG", 1 should suppress the dialog -- Regards Tom Ogilv "Kevin" wrote in messag .. Thanks Dave I substitute Shell("REGEDIT /L:C:\WINDOWS\ /R:C:\WINDOWS\ C:\RESTRICT.REG /S", 1 fo Shell("C:\WINDOWS\REGEDIT.EXE C:\RESTRICT.REG", 1 But it failed to work Any ideas Kevi ----- Dave Peterson wrote: ---- You can run regedit in silent mode--to suppress all the messages I found this in a google search http://www.ntcompatible.com/thread26615-1.htm REGEDIT [/L:system] [/R:user] [/v|-v] [/s|-s] filename REGEDIT [/L:system] [/R:user] /C filename REGEDIT [/L:system] [/R:user] /E filename3 [regpath /L:syste Specifies the location of the System.dat file /R:use Specifies the location of the User.dat file [/v|-v This switch opens REGEDIT.EXE in advanced mode, where th registratio database i displayed in a tree structure (similar to the tree window i Windows 3.1 Fil Manager) Any part of the database can be edited [/s|-s When a filename is specified on the command line, this switch i used t suppress an informational dialog boxes that would normally be displayed. Thi is usefu when the Setu program for an application wants to execute REGEDIT.EXE with a .RE file, bu does no want the user to be confused by any dialog boxes that ar displayed filename Specifies the file(s) to import into the registr /C filename Specifies the file to create the registry from /E filename Specifies the file to export the registry to regpat Specifies the starting registry key to exportfrom. (Defaults t exporting th entir registry) Syntax for Switches Either "/" or "-" can be used to signify th optiona switches. Th switches can be combined (for example, -vs) and be typed in eithe uppercas o lowercase. Unrecognized switches are ignored Kevin wrote Hello folks I've developed a program that starts with "Application.Visible False" then proceeds to execute the regedit application via the shell metho <Shell "C:\WINDOWS\REGEDIT.EXE C:\RESTRICT.REG", vbNormalFocus. It the reboots the PC. Problem is the reboot overrides a necessary prompt/respons from the regedit application. That is, I need to respond to two prompt from the regedit application before rebooting the PC. Is there a way I ca force the reboot to wait for these prompts and responses Thanks Kevi -- Dave Peterso |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to open Excel in different windows AND open from Outlook? | Setting up and Configuration of Excel | |||
cannot open exel from windows xp in windows vista and visa versa | New Users to Excel | |||
OPEN MULTIPLE WINDOWS | Excel Discussion (Misc queries) | |||
Open Workbooks in New Windows | Excel Discussion (Misc queries) | |||
Open email windows can't open, excel shreadsheet file .xls ? | Excel Discussion (Misc queries) |