chiners_68 Posted June 22, 2006 Posted June 22, 2006 im sure you can but im having problems.. error : Unable to execute the external program. The system cannot find the file specified I currently have the line below to execute the reg file. If I paste the quoted line in my run box the reg file runs fine. what do i need to do to get this to work. once ive got it running I then need to put in the /s for a silent run of the reg file.. Run("\\server\it$\Software\Other\PaintShop Pro\PaintShop Pro.reg")
Briegel Posted June 22, 2006 Posted June 22, 2006 RunWait("regedit.exe /s \\server\it$\Software\Other\PaintShop Pro\PaintShop Pro.reg") That's all.
chiners_68 Posted June 22, 2006 Author Posted June 22, 2006 for some reason its falling over on the space in the folder PaintShop Pro can I put in another set of quotes round the UNC path so it will work with spaces in the folder & file name..?
ChrisL Posted June 22, 2006 Posted June 22, 2006 Run('"\\server\it$\Software\Other\PaintShop" Pro\PaintShop Pro.reg') [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
Ravenlark Posted June 22, 2006 Posted June 22, 2006 (edited) ChrisL said: Run('"\\server\it$\Software\Other\PaintShop" Pro\PaintShop Pro.reg')I tend to use chr(34) for hard path quotes; just my preference. I find it easier to read.Run("Regedit /s " & chr(34) & "\\server\it$\Software\Other\PaintShopPro\PaintShop Pro.reg" & chr(34)); Note the space after the regedit /s. Edited June 22, 2006 by Ravenlark Ravenlark-----------------------------------------------------when you find yourself with the majority, its time to pause and reflect - Mark Twain
ChrisL Posted June 22, 2006 Posted June 22, 2006 Ravenlark said: I tend to use chr(34) for hard path quotes; just my preference. I find it easier to read.Run("Regedit /s " & chr(34) & "\\server\it$\Software\Other\PaintShopPro\PaintShop Pro.reg" & chr(34)); Note the space after the regedit /s.LOL I totally missed the regedit /s part out!RunWait('Regedit /s "\\server\it$\Software\Other\PaintShop" Pro\PaintShop Pro.reg') [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
Briegel Posted June 22, 2006 Posted June 22, 2006 ChrisL said: LOL I totally missed the regedit /s part out! RunWait('Regedit /s "\\server\it$\Software\Other\PaintShop" Pro\PaintShop Pro.reg') Is this right? RunWait('Regedit /s "\\server\it$\Software\Other\PaintShop" Pro\PaintShop Pro.reg') I think so it's right. ?? RunWait('Regedit /s "\\server\it$\Software\Other\PaintShop Pro\PaintShop Pro.reg"')
MHz Posted June 22, 2006 Posted June 22, 2006 Briegel said: I think so it's right. ?? RunWait('Regedit /s "\\server\it$\Software\Other\PaintShop Pro\PaintShop Pro.reg"')That line is what I would use
ChrisL Posted June 22, 2006 Posted June 22, 2006 Briegel said: Is this right? RunWait('Regedit /s "\\server\it$\Software\Other\PaintShop" Pro\PaintShop Pro.reg') I think so it's right. ?? RunWait('Regedit /s "\\server\it$\Software\Other\PaintShop Pro\PaintShop Pro.reg"') And yet again I was a tool, "must not reply when busy doing other things".. I'll go and repeat this line 1000 times now. Sorry You are right RunWait('Regedit /s "\\server\it$\Software\Other\PaintShop Pro\PaintShop Pro.reg"') [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
PartyPooper Posted June 22, 2006 Posted June 22, 2006 *.reg files don't get executed, you either merge them into the registry using regedit as suggested above or open them for editing using notepad (or any other text editor). The RUN or RUNWAIT command can be used for both.
chiners_68 Posted June 22, 2006 Author Posted June 22, 2006 this finally worked.. RunWait("regedit.exe /s ""\\server\it$\Software\Other\PaintShop Pro\PaintShopPro_mod.reg")
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now