Code: Select all
set "$fileMutex=(pause>&3)3>"%systemDrive%\ED\mutex\!m!.mutex"||!exception.get!"
Code: Select all
( %macroToCmdMacro_% $fileMutex, $fileMutex )
cmd /V:on /E:on /T:0B /Q /C "%%$fileMutex%% lockThisFileFromWriting"
Code: Select all
start "" /LOW /B cmd /V:on /E:on /T:0B /Q /C "%%$fileMutex%% lockThisFileFromWriting"
I can't communicate through a for loop as that would wait for the new thread to finish, that will never happen obviously.
Actually at this point I lost all means to communicate to my child process at all :/
The only secure solution I can come up with is to figure out my child process ID, so I can taskkill the PID, but the only way I know of to retrieve the child process is by using WMIC and that's so painfully slow
Hmmmmz, any thoughts ? thanks ..