MSFN Forum: Create a shortcut to a virtual folder (My Computer) - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create a shortcut to a virtual folder (My Computer) Using a batch file and, perhaps, shortcut.exe Rate Topic: -----

#1 User is offline   random0xff 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 19-August 08

Posted 06 October 2008 - 03:15 PM

I just learned about virtual folders, and I want to create a shortcut to My Computer from a batch file. I am familiar with shortcut.exe and maybe I can create one with that program, but I don't know what the target would be. It's a virtual folder so it has no path. Maybe using a class id? What notation should I try?

Also, I have a shortcut file (target.lnk) that points to My Computer. Is that reusable across all Windows XP installations? In that case, I might not have to create one, I could just copy the target.lnk file, right?

Many thanks!


#2 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 572
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 06 October 2008 - 04:45 PM

I believe shortcut.exe is unable to create system folder shortcut for you as it needs a path.
You can query using shortcut.exe on My Computer.lnk (if you create one on your desktop)

Shortcut.exe /F:"%userProfile%\desktop\My Computer.lnk" /A:Q

Result will not yield any information useful

BTW, My Computer clsid is {20D04FE0-3AEA-1069-A2D8-08002B30309D}

I also think you can use the target.lnk across XP. It is reusable as it is a valid shortcut created by XP
Just my view through

#3 User is offline   random0xff 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 19-August 08

Posted 08 October 2008 - 03:04 PM

Thanks for your reply.

I figured it out, to create a valid target.lnk you have to put file:///::{20D04FE0-3AEA-1069-A2D8-08002B30309D} as the target for shortcut.exe

You can paste that into the start > run window and hit enter and it will open up my computer.

Yay!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy