neo_3333 Posted July 5, 2004 Posted July 5, 2004 I've decided to use inf file for my reg. tweaks and I was just wondering what's the difference between the two syntax below.Can someone clarify this for me ?%ProgramFiles%\\Utilities\\Rename Master\\RenameMaster.exe \"%1\"and%ProgramFiles%\Utilities\Rename Master\RenameMaster.exe \"%1\"What's the diff when dealing with reg and inf files? Why double backslash ? Also can someone please confirm whether this correct ?.reg[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]"Window_Placement"=hex:2c,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,ff,ff,\ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,00,00,00,00,00,00,00,00,80,04,00,00,60,03,00,\00if I can to .inf, is this correct ?HKCU,Software\Microsoft\Internet Explorer\Main,"Window_Placement",0x00000001,"2c,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,ff,ff,\ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,00,00,00,00,00,00,00,00,80,04,00,00,60,03,00,\00" Thanks in advance
MCT Posted July 5, 2004 Posted July 5, 2004 double backslash can be used in .reg files to, for paths..c:\\Windows\\Resources\\Themes\\mytheme.theme as an example...i think your inf code is ok tho... i havent tested it personally, but it looks ok (i could be wrong, i havent been using inf files very long)
neo_3333 Posted July 5, 2004 Author Posted July 5, 2004 MCT,Is there any reason you would use double slash instead of single for paths ? ie. Is there a difference or does it matter which you use ?
MCT Posted July 5, 2004 Posted July 5, 2004 just makes sure windows will find it...if u add only 1 , windows may not "find" the location, ive always heard its best 2 use 2 in pathsregards
Alanoll Posted July 5, 2004 Posted July 5, 2004 the double slash is because other wise Windows believe's it's a relative path in the registry, not elsewhere.Also....your INF is wrong HKCU,Software\Microsoft\Internet Explorer\Main,"Window_Placement",0x00000001,2c,00,00,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,00,00,00,00,00,00,00,00,80,04,00,00,60,03,00,00Is correct. No " when using binary or dword values (your's is binary) and remove those \'s that regedit adds when exporting.EDIT: There ARE quotes around Window_Placement, if it looks like & #34, the board is messing up. They're quotes.
sleepnmojo Posted July 5, 2004 Posted July 5, 2004 I would say the double backslash is "proper" syntax. The backslash is used as an escape character. Thus when you see one, the parser should expect the next character to be special. Since this technically isn't programming, and you don't have special meaning for some escape sequences, they probably figured that if it isn't a special character, then ignore it.Its like that all over the operating system. Command line, address bar, reg files, .... If they were a little more strict about things, rather than lazy, then they wouldn't have so many problems with scripting and such.
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