how do you associate files
Posted: Thu Aug 28, 2008 3:14 am
hello I write this little interpreter that reads a script and executes it, right now you would do something like ,
linux
./myProg filePath
windows
myProg.exe filePath
and it would read the file in an execute it, but I would like to be able to just click on the file on the desktop (in both windows and linux) and have the program run, (like how python works) , i'm pretty sure in windows I would need to play around with the registry , but i'm not sure how to do it in linux .
people suggested to use #! , but I would really like to avoid that , I want it to just look at the extension and execute accordingly, any suggestions?
as for windows, I am also not very confident with the registry, are there any tools that could just make it easier? or any tutorials I can read ? thank you very much
linux
./myProg filePath
windows
myProg.exe filePath
and it would read the file in an execute it, but I would like to be able to just click on the file on the desktop (in both windows and linux) and have the program run, (like how python works) , i'm pretty sure in windows I would need to play around with the registry , but i'm not sure how to do it in linux .
people suggested to use #! , but I would really like to avoid that , I want it to just look at the extension and execute accordingly, any suggestions?
as for windows, I am also not very confident with the registry, are there any tools that could just make it easier? or any tutorials I can read ? thank you very much