I am using windows 7 I want to pass filename as argument which I want to open through custom url. I followed link http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
My python code is:
import os,sys
selectedFileName=(sys.argv)[1]
os.startfile(selectedFileName)
My registry setting is:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cultest]
@="\"URL:cultest Protocol\""
"URL Protocol"="\"\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cultest\DefaultIcon]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cultest\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cultest\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cultest\shell\open\command]
@="\"D:\\Test\\argument\\dist\\cultest.exe\" \"%1\""
So which url I type in webbrowser/mozila/explorer. I tried with cultest:"C:/Users/liverpool/Desktop/Hostname.txt" but it didn't work C:/Users/liverpool/Desktop/Hostname.txt is the file name