View Single Post
  #4  
Old July 7th, 2012, 09:18 PM

dmnt dmnt is offline
Sergeant
 
Join Date: Jan 2010
Location: Espoo, Finland
Posts: 359
Thanks: 56
Thanked 136 Times in 104 Posts
dmnt is on a distinguished road
Default Re: Simple fix to force-start Explorer.exe once game exits full-screen

Quote:
Originally Posted by RightDeve View Post
Code:
taskkill.exe /f /im explorer.exe
start/w winSPMBT.exe
cd c:\windows
start C:\Windows\explorer.exe
You shouldn't hard-code install directories, people might have different setups etc. Instead you should use the system properties,

Code:
taskkill.exe /f /im explorer.exe
start /w winSPMBT.exe
start %WINDIR%\explorer.exe
[RANT]
In general, never assume anything to be under certain naming scheme but use the system property whenever applicable. One of the reasons I don't like running Windows in my native tongue is because the software writers in the US always assume that the Desktop directory is named "Desktop" and not for example "Työpöytä". Add insult to injury that the accented letters on file names cause commonly bugs to software that is not prepared for those. Another reason not to run a non-english OS is that idiotically the keyboard shortcuts are changed. So Alt+F doesn't open you the Files dialog tab from the menu, you do that with Alt+T. Consistency, dear developers!
[END RANT]
Reply With Quote