Agnes,
<snip>KISS is a good approach but one could be a simple too. ::)
etwas fehlt in der Übersetzung
Also there are quite a few viruses that actively look for WSH once they have gained access to a machine, disabling WSH just lessens the available work area.
>Neil,
>
>KISS is a good approach but one could be a simple too. ::)
>
>So I will give you some simple answers:
>
>I newtwork connection is broken, all may databases applications will stop because the data is stored in some way on a server.
>I do not program for me, but for people that will pay me for it. I have no idea about there environment nor any change they will do.
>I have no idea if the folder is named "Desktop" under all languages. It seems to be the same under english and german, but other folders use differnent names under german and english.
>
>I agree on the use of WSH (but only out of paranoia, there are simpler ideas to miss infections), but to get the paths there might be a API too. (My dispute an a other branch of this thread was about creating a .lnk)
>
>
>Agnes
>>Hi Agnes,
>>
>>Yes I know powertoys, I have also seen what happens when the desktop is redirected to the network and you loose the network connection.
>>If you want the same environment, just use GETENV("ALLUSERSPROFILE") + "\DESKTOP\", I work on the KISS principle Keep It Simple Stupid, enough can go wrong with windows without adding complexity to the user environment.
>>
>>Anyway the one line of code "GETENV("USERPROFILE") + "\DESKTOP\"" is a lot better than using WSH, as I always disable it due to the inherent security concerns if it is running.
Regards N Mc Donald