I want to make my python program to execute a file in Windows. That means that if I try to execute a .txt file, it would open with the default .txt viewer. Is that possible?
I tried subprocess.call, but I get WindowsError: [Error 193] %1 is not a valid Win32 application. The file I'm trying to run is a .png file.