Results 1 to 3 of 3

Thread: How to move Special Folders

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2014
    Posts
    11

    How to move Special Folders

    Code:
    My.Computer.FileSystem.MoveDirectory(Dir1, Dir2, True)
    Code above can move normal folder but not the special folders like Desktop, My Documents, My Music, My Pictures etc.
    Can anyone tell me how programmatically move the special folders.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    32,952

    Re: How to move Special Folders

    You can't. If you did, you'd break Windows since it wouldn't know where you moved them. Also, some of them aren't even folders, but virtual folders to another location.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2014
    Posts
    11

    Re: How to move Special Folders

    Quote Originally Posted by techgnome View Post
    You can't. If you did, you'd break Windows since it wouldn't know where you moved them. Also, some of them aren't even folders, but virtual folders to another location.

    -tg
    How come even when I manually cut and paste the My document or desktop folders to another location Windows automatically update the new location for the moved special folders?

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