Oct-03-2017, 06:39 AM
I'm looking to obtain the file path for any output save files from notepad. A user may choose to save anywhere so directory monitoring didn't seem feesable. I've tried using the subprocess module to open notepad and obtain it's stdout, but it outputs to file. I've been instructed to explore hooking. If I can help it I'd like to not go that route.
Is it possible to use a bat file to set up a pipe that would read it's output file path?
Or am I not understanding the subprocess module?
Is hooking createfile() the only route?
Im capable of figuring most stuff out but my brain can only think of so much stuff for Google searches and the likes. There wasn't an obvious answer and I can't think of anymore searches so I apologise if it's simple to another, but this is where I'm stuck for now.
Is it possible to use a bat file to set up a pipe that would read it's output file path?
Or am I not understanding the subprocess module?
Is hooking createfile() the only route?
Im capable of figuring most stuff out but my brain can only think of so much stuff for Google searches and the likes. There wasn't an obvious answer and I can't think of anymore searches so I apologise if it's simple to another, but this is where I'm stuck for now.