Results 1 to 2 of 2

Thread: Desktop Icons are created in some computer while not in others [help]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    76

    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
    Last edited by riteshtechie; Jan 11th, 2010 at 01:50 AM.
    < advertising link removed by moderator >

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    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..
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width