Other Software > Developer's Corner
Is it possible to change to working directory within the running programm?
f0dder:
Alternative solution: write to the keyboard buffer.
-ethan (June 17, 2008, 06:48 AM)
--- End quote ---
Baaad idea :)
One thing is that it will obviously fail if the console window loses focus (and it might, for a zillion different reasons). Another potential problem the following blurb:
Microsoft Windows Vista. This function fails when it is blocked by User Interface Privilege Isolation (UIPI). Note that neither GetLastError nor the return value will indicate the failure was caused by UIPI blocking.
--- End quote ---
(obviously that would also block the other various hacks, but not the batchfile thingy).
Navigation
[0] Message Index
[*] Previous page
Go to full version