Desktop Icons are created in some computer while not in others [help]
I am having a problem I have created a program which will create Shortcuts by using CLSID. (Edd Bott say God Mode)
The problem is it runs fine on some computer but in other it did not work fine. If someone can help me in this project.
Project file attached
Binary File
Re: Desktop Icons are created in some computer while not in others [help]
You could try using IO.Path.Combine as that is the recommended way to combine two paths. So with your code, here's an example:
Code:
My.Computer.FileSystem.CreateDirectory(IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}"))
Also, you do realise that this will not work on Windows XP right? The All Tasks CLSID only exists on Vista and 7 so if these computers that it is not working on are all XP machines then that makes sense..