I use AHK all over the place on my PC and have a few folders with special characters. I prefer to use batch files to open folders, but have done a LOT of research and no luck finding a way to escape a couple pesky characters The following script (I have a handful of others), not only opens the folder upon end of gameplay, but also deletes some junk cache files that were created while playing it. Works great, but would prefer to run these commands silently and not with a fullscreen blue CMD window typing it all out in front of me. Ya, this qualifies as a first world problem
I am now seeking a way to ideally run CMD completely silent, as .vbs does with a .bat file. As per usual, I have done research, but cannot find anything that will accomplish my goal:
------------------------------------------------------------------------------------------------------------------------------------------------
Code: Select all
sleep, 1000
Run, C:\WINDOWS\system32\Commandmeister.exe ;this is CMD.exe renamed
sleep, 10
send cd /d "C:\Documents and Settings\Eric\Application Data\Sunward Games\Endless Fables - The Minotaur’s Curse\CE\profile"{enter}
sleep, 10
send del 4576696C65.ach.bak{enter}
sleep, 10
send del Profile_01_bak.prf{enter}
sleep, 10
send del Save_GameContent_SE01_bak.cub{enter}
sleep, 10
send del Save_GameContent_CE01_bak.cub{enter}
sleep, 50
Run, C:\Documents and Settings\Eric\Application Data\Sunward Games\Endless Fables - The Minotaur’s Curse
sleep, 50
Run, G:\Games\+ DaS - Eric - AD\Sunward Games\Endless Fables - The Minotaur’s Curse
sleep, 50
Process, Close, Commandmeister.exe
The character is the "’" (used as apostrophe) but I don't know what it is. I even contacted Rob van der Woude (has website and specializes in batch file commands) and his suggestion did not work* This is why I am back to hoping AHK can do the above task silently.
As always, I appreciate any input or thoughts you may have. I am hoping there is some text I can add to my script to accomplish my task
PS> I can probably get CMD.exe to always run silent, but only wish to do so for specific situations like this
PPS> Now that I have expressed all this, I have a couple ideas for research, so I will continue to look
* Rob van der Woude opted to reach back out to me and did indeed resolve THIS specific issue, but there are a number of other folders with special characters that his option did not resolve