Quote:
Originally Posted by RightDeve
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]