Context Menu - Multiple choices per extension
I've been using Windows XP at work and have finally gotten upgraded to Windows 7. I have 2 batch files that are associated with a single file extenstion to import and export Tab Separated Values (TSV) into my SQL Server database. At the bottom is the steps that I did to create it in Windows XP. The "File Types" tab does not exist anymore. I have created the default option for opening a TSV file in Windows 7 but can only have one. Is it possible to get the same functionality that was available in XP? I could live with the "Open With" option on the context menu if it wasn't for the fact that it doesn't work. It starts to run and then stops with errors. In order to get the batch files to work correctly, I have to change the default action and then double click or right click and select "Open". The problem with this is it is annoying. Thanks, Dave Windows XP --------------------------------------------------------- Tools -=> Folder Options -=> File Types Click "New" File Extension: TSV Click "OK" Click "Advanced" Click "New" Action: "C:\Apps\Tools\ImportTsvFile.bat" "%1" Check: Use DDE Click "New" Action: "C:\Apps\Tools\ExportTsvFile.bat" "%1" Check: Use DDE Context Menu TSV Import <=- Bold / Default TSV Export
May 10th, 2012 8:39am

Hi, Based my research, we cannot create a new file type in Windows 7 Explorer or Control Panel. However, we can add an Application in the Open with Dialog Box by edit the registry keys. Please refer the following two links: http://msdn.microsoft.com/en-us/library/windows/desktop/hh127445(v=vs.85).aspx http://msdn.microsoft.com/en-us/library/windows/desktop/cc144148(v=vs.85).aspxKim Zhou TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2012 4:44am

Kim Zhou is right. No way to do it except by manually editing registry. To save time, you can just copy HKEY_CLASSES_ROOT\.tsv key from your Windows XP to Windows 7. On Windows XP computer, select .tsv key under HKEY_CLASSES_ROOT in Registry Editor > File menu > Export > Make sure Export range is set to Selected branch in Save dialog. save the file. On Windows 7 computer, just double-click the file, and answer Yes to the prompt asking for confirmation to add the data to registry. You may need to reboot.
May 11th, 2012 6:14am

There doesn't seem to be enough info in that. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.tsv] "PerceivedType"="text" @="ft000001" I'm guessing that I need to export the ft000001 as well. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\ft000001] "EditFlags"=dword:00000000 "BrowserFlags"=dword:00000008 @="" [HKEY_CLASSES_ROOT\ft000001\shell] @="Import_TSV" [HKEY_CLASSES_ROOT\ft000001\shell\Import_TSV] @="TSV Import" [HKEY_CLASSES_ROOT\ft000001\shell\Import_TSV\command] @="C:\\Apps\\Tools\\AutoImportTSVFile.bat \"%1\"" [HKEY_CLASSES_ROOT\ft000001\shell\Import_TSV\ddeexec] [HKEY_CLASSES_ROOT\ft000001\shell\Import_TSV\ddeexec\Application] @="AutoImportTSVFile" [HKEY_CLASSES_ROOT\ft000001\shell\Import_TSV\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\ft000001\shell\TSV_Export] @="TSV Export" [HKEY_CLASSES_ROOT\ft000001\shell\TSV_Export\command] @="C:\\Apps\\Tools\\AutoExportTSVFile.bat \"%1\"" [HKEY_CLASSES_ROOT\ft000001\shell\TSV_Export\ddeexec] [HKEY_CLASSES_ROOT\ft000001\shell\TSV_Export\ddeexec\Application] @="AutoExportTSVFile" [HKEY_CLASSES_ROOT\ft000001\shell\TSV_Export\ddeexec\Topic] @="Custom" Is that correct ? Anything else ?
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2012 8:54am

Yeah, you need to export ft000001 as well and add it to Windows 7's registry - sorry for that. Glad you figured it out yourself.
May 11th, 2012 11:13am

I got it up and running and works good. Here is the complete script in case anyone is looking for a functioning example sometime in the future. . Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.tsv] "PerceivedType"="text" @="tsv_auto_file" [HKEY_CLASSES_ROOT\tsv_auto_file] @="" "BrowserFlags"=dword:00000008 "EditFlags"=dword:00000000 [HKEY_CLASSES_ROOT\tsv_auto_file\shell] @="Export_TSV" [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Export_TSV] @="TSV Export" [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Export_TSV\command] @="C:\\Apps\\Tools\\AutoExportTSVFile.bat \"%1\"" [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Export_TSV\ddeexec] [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Export_TSV\ddeexec\Application] @="AutoExportTSVFile" [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Export_TSV\ddeexec\Topic] @="Custom" [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Import_TSV] @="TSV Import" [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Import_TSV\command] @="C:\\Apps\\Tools\\AutoImportTSVFile.bat \"%1\"" [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Import_TSV\ddeexec] [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Import_TSV\ddeexec\Application] @="AutoImportTSVFile" [HKEY_CLASSES_ROOT\tsv_auto_file\shell\Import_TSV\ddeexec\Topic] @="System" [HKEY_CLASSES_ROOT\tsv_auto_file\shell\open] [HKEY_CLASSES_ROOT\tsv_auto_file\shell\open\command] @="\"C:\\Apps\\Tools\\AutoImportTSVFile.bat\" \"%1\"" [HKEY_CLASSES_ROOT\Applications\AutoImportTSVFile.bat] [HKEY_CLASSES_ROOT\Applications\AutoImportTSVFile.bat\shell] @="Import_TSV" [HKEY_CLASSES_ROOT\Applications\AutoImportTSVFile.bat\shell\Import_TSV] @="TSV Import" [HKEY_CLASSES_ROOT\Applications\AutoImportTSVFile.bat\shell\Import_TSV\command] @="C:\\Apps\\Tools\\AutoImportTSVFile.bat \"%1\"" [HKEY_CLASSES_ROOT\Applications\AutoImportTSVFile.bat\shell\Import_TSV\ddeexec] [HKEY_CLASSES_ROOT\Applications\AutoImportTSVFile.bat\shell\Import_TSV\ddeexec\Application] @="AutoImportTSVFile" [HKEY_CLASSES_ROOT\Applications\AutoImportTSVFile.bat\shell\Import_TSV\ddeexec\Topic] @="System"
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2012 1:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics