When I run this executable from the command line, it works fine. When I run another executable which then runs this executable, the code no longer works, but there is no error.
The weird thing is that when mypath is a directory, windows will happily open file explorer at that directory, even when being called from another executable:
If there's some permissions issue going on that's fine but shouldn't this return an error if it's not able to complete?
Any insight into what's going on here would be welcomed too.
I've written some very simple code to just open a text file
When I run this executable from the command line, it works fine. When I run another executable which then runs this executable, the code no longer works, but there is no error.
The weird thing is that when
mypath
is a directory, windows will happily open file explorer at that directory, even when being called from another executable:^ This works fine. But any file will not.
If there's some permissions issue going on that's fine but shouldn't this return an error if it's not able to complete? Any insight into what's going on here would be welcomed too.