Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Set file associations from a batch file???
Name: dyonysos Date: July 4, 2009 at 11:47:09 Pacific OS: Windows Subcategory: Batch
Comment:
Hi, I'm trying to associate a type of file to an app from a batch file using reg add command: reg add hklm\software\xxx /ve /t reg_sz /d ""%cd%\prog.exe" "%1"" but it doesn't write in the registry exactly what I want.I think something is wrong in the /d switch! can you help?
PS:I want something like this to be written in the registry but only using the reg add command:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\xxx.Document\shell\open\command] ""="\"C:\\Program Files\\app.exe\" \"%1\"" and [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\xxx.Document\shell\open\ddeexec] ""="[open(\"%1\")]"
I wrote a script that creates a reg file on-the-fly, and it works,but I need to do the same only using the reg add command...help me please!
Summary: I want a batch file to open internet explorer and pass it a specific html file to open with. e.g. "c:\program files\internet\iexplore.exe" c:\temp\123.htm I would appreciate any help. ...
Summary: Hello, I want to create an exe file from a batch file and 2 other exe file. How can I do this? I want it so that when I click the exe it runs the batch file and it can still do things with the other 2...
Summary: Hi M2G. But why? > newfile & setLocal EnableDelayedExpansion Only the first word in the first line of the text file is being extracted, delayed expansion is not required (?) and no file is being wri...