teeboi Posted April 13, 2011 Posted April 13, 2011 (edited) Can someone help me to fix this? I am getting Error in expression with the following code. The quotations around "%1" must be included. Thanks in advanceRegWrite("HKCR\Word.document.8\shell\Open\command", "", "REG_SZ", "C:\Program Files\Microsoft Office\Office10\WINWORD.EXE" "%1") Edited April 13, 2011 by teeboi
taietel Posted April 13, 2011 Posted April 13, 2011 Test it now: RegWrite("HKCR\Word.document.8\shell\Open\command", "", "REG_SZ", 'C:\Program Files\Microsoft Office\Office10\WINWORD.EXE "%1"') Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text
teeboi Posted April 13, 2011 Author Posted April 13, 2011 Thanks taietel for the quick response. Script works but it's missing quotes around "C:\Program Files\Microsoft Office\Office10\WINWORD.EXE" This also needs to be quoted
teeboi Posted April 13, 2011 Author Posted April 13, 2011 RegWrite("HKCR\Word.document.8\shell\Open\command", "", "REG_SZ", '"C:\Program Files\Microsoft Office\Office10\WINWORD.EXE" "%1"')I figured it out Thanks for your help buddy.
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