Jump to content

Recommended Posts

Posted

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")

Posted

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..?

Posted (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 by Ravenlark

Ravenlark-----------------------------------------------------when you find yourself with the majority, its time to pause and reflect - Mark Twain

Posted

  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 :D

I totally missed the regedit /s part out!

RunWait('Regedit /s "\\server\it$\Software\Other\PaintShop" Pro\PaintShop Pro.reg')

Posted

  ChrisL said:

LOL :D

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"')
Posted

  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 :D
Posted

  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"')

Posted

*.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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...