Can batch or Windows cmd file create or release mutex, without custom exe?
Similar questions (like this) tell only to write custom c exe.
Can I work with mutex from bare batch script, or only with use a some Windows standard utils?
UPD
I do not need the single instance bat, I need to work with mutex to send the message to already exist parent-process with known mutex. Temp file is not an answer.
UPD 2
- Parent program have the mutex (I use the
hMutex:=CreateMutex( nil, TRUE, 'VCSClient2r123r123refqwe' );
in program startups, to prevent the multiple instances of parent program. - Parent program run
svn.exe diff "some_modified_file" --diff-cmd "diff.bat" --force
diff.bat
should send some messages to parent program. Because mutex is already exist and mutex name are fixed, I want to use it to send info fromdiff.bat
to parent process.