Home > Windows 7 > Script To Change The Location Of Documents Folder In Windows 7

Script To Change The Location Of Documents Folder In Windows 7

Contents

Please post the source code AND the compiled version of an utility capable of doing this in (your choice):CC+C++C#DelphiYou have exactly 8 (eight) minutes from now, or you may take notice, Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegWrite"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal", "T:\My Documents" WshShell.RegWrite"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal", "T:\My Documents" That is code I got from another site, which does allow changing the my documents location without going I created a wrapper function called Set-KnownFolderPath that does it: <# .SYNOPSIS Sets a known folder's path using SHSetKnownFolderPath. .PARAMETER Folder The known folder whose path to set. .PARAMETER Path The Yet another tie....and a HTA-script uses an interpreter (which is well over several 100's of kB's)So what? http://appsizematters.com/windows-7/location-of-drivers-in-win7-dvd.html

This means when you access the files from a library or local folder, they open as fast as any other file. bushmen #3 tnoonan Total Posts : 364 Scores: 0 Reward points : 0 Joined: 12/14/2004Location: Status: offline Re: My Documents Location Wednesday, February 23, 2005 4:49 AM (permalink) 0 http://www.pbdr.com/ostips/cmydocs.htm FileCreateShortcut(@MyDocumentsDir,"My Documents.lnk")???? All Forums >> [Scripting] >> WSH & Client Side VBScript Forum MenuLog inRegistration / Sign up RSS FeedThread Options View Printable PageThread Reading Mode My Documents Location Author Message Tr0jan http://www.sevenforums.com/general-discussion/340231-script-change-location-documents-folder-windows-7-a.html

My Documents Location Registry Windows 7

A bonus would nice to allow me to run this from a server and modify all computers that have the accounts "Teacher" and "Student" Thanks in advance and Regards.for my e-mail Note that you have to run it as Administrator for symlinking to work ( untested, YMMV ): ::Change this to the folder where you want to store your data set DESTFOLDER="Z:\Path\on\other\partition" The command is given below.reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t REG_SZ /d folder_new_location /fNote that this command does not move/copy the existing contents of Documents folder to the new

Please post the source code AND the compiled version of an utility capable of doing this in (your choice):1.C2.C+3.C++4.C#5.Delphi I would like to see this also, being that your a programmer.Here Please post the source code AND the compiled version of an utility capable of doing this in (your choice):CC+C++C#DelphiYou have exactly 8 (eight) minutes from now, or you may take notice, any possibility to post it on this forum? Folder Redirection Registry Windows 7 Reply Link adminModified the command in the post.

The reason being that I work in a lot of small and midsized businesses that don't have a domain. 0 Datil OP Helpful Post Krizz May 10, 2014 Powershell Change My Documents Location Sign in here. The idea here is that we change the default folders everybody uses to ones that will sync to the cloud.  If you're curious about what I mean by This PC > https://social.technet.microsoft.com/Forums/scriptcenter/en-US/691580bf-027c-4ad4-a821-18491ca34f03/script-to-change-the-my-documents-location-for-other-users-and-not-just-the-logged-on-user-xp?forum=ITCG or another way around this?

why is that? (Well... Change User Folder Location Windows 7 Creating your account only takes a few minutes. Adding elements in subsets of components of lists Are there any techniques for starting and maintaining a fire in snow? windows-7 windows script user-profiles share|improve this question edited Oct 31 '14 at 13:14 Kenster 3,50221326 asked Nov 24 '09 at 20:44 Evan M. 179138 +1 i'm looking for something

Powershell Change My Documents Location

Dim Act :Set Act = CreateObject("Wscript.Shell")Dim Fso :Set Fso = CreateObject("Scripting.FileSystemObject")'-> Array To Hold The Reg Keys And Users FoldersDim Loc :Loc = Array( _ "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal - os meus documentos", http://superuser.com/questions/74923/script-to-move-specific-user-folders-in-windows-7 more hot questions question feed lang-bsh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation My Documents Location Registry Windows 7 and therfore so folder redirection doesn't work, and running a script on first log in is also inefficient as I can't be there at the site all the time (working for Change My Documents Location Windows 8 Registry Canadian permanent resident visiting Japan How does this agreement define 'revenue'?

This IS an answer! –SuperJMN Sep 7 '14 at 20:40 1 You should name it Set-KnownFolderPath, and probably stick a [ValidateSet("AddNewPrograms","AdminTools",...)] attribute on your $KnownFolder parameter ;-) –Jaykul Sep 8 weblink I'd call that a tie, mostly because I fail to see the relevance (much like it doesn't really matter when I read a web page if it was served as static Do it once and save the script. Documents, Musics, Pictures, etc.). Hkey_current_user\software\microsoft\windows\currentversion\explorer\user Shell Folders

Get 1:1 Help Now Advertise Here Enjoyed your answer? by the_joey_o on May 10, 2014 at 2:07 UTC | Windows 8 Rommy IT is an IT service provider. 0 Next: Duplicate firewall rules windows 8(.1) Join the Community! Only reason I could think of changing mydocuments location is if you were not using roaming profiles and wanted to change it to save on a share folder on network for navigate here That would have to be like Logo )fastIt's definitely not fast(er) to write, and as for execution time, basically all methods are measured in ridiculously tiny fractions of 1 second (instantly)

All rights reserved. Windows 7 Change My Documents Location Create complex table with LaTeX Are people of Nordic Nations "happier, healthier" with "a higher standard of living overall than Americans"? more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science

All the folders are working properly except in explorer view.

If it's there - I will split points with aeklund 0 LVL 10 Overall: Level 10 VB Script 1 Powershell 1 Message Expert Comment by:aeklund ID: 359116892011-06-05 Shell Folders is If you are in a workgroup, you can deploy the registry changes as part of your login script (so that the moment Teacher or Student logs in, the settings get applied). I fail to see how this matters as well. User Shell Folders Registry powershell path special-folders share|improve this question asked Sep 7 '14 at 10:47 SuperJMN 1,3461230 add a comment| 2 Answers 2 active oldest votes up vote 7 down vote accepted PowerShell doesn't

I'm not familiar with Onedrive Pro - are you trying to redirect to a local/networked folder that's being sync'ed with cloud or directly point the to the cloud folder? There is nothing gained by doing it that way (both would execute ~instantly, using very little resources), and it would be an unnecessary pain to maintain e.g. How exactly does "/bin/[" work? his comment is here Register a new account Sign in Already have an account?

Or sign in with one of these services Sign in with Facebook Sign in with Microsoft Sign Up This Topic All Content This Topic This Forum Advanced Search Browse Forums Downloads Also added Test-Path to make sure the directory exists. –Eric Eskildsen Sep 8 '14 at 10:28 add a comment| up vote 0 down vote This is indeed a great function! the computer administrator. I very well could be wrong (hopefully I am), but it does sound quite like that to me.Out of that list, I could do it in C++ and C# as many,

All rights reserved.Newsletter|Contact Us|Privacy Statement|Terms of Use|Trademarks|Site Feedback Jump to content Primary Secondary Strawberry Orange Banana Lime Aqua Slate Sky Blueberry Grape Watermelon Chocolate Marble Strawberry Orange Banana Lime Aqua Slate The library location is just an empty folder and properties, it can contain within it many different locations. This will be demonstrated using Windows 7 operating system. am i right in saying, we're back to square one!

Like Windows XPthis script os working and i'm testing it a little morecan anyone help me on this?This script is very usefull because i format and install Windows forabout 10 times Just set up a reg file so you can quickly apply those settings to multiple machines. 1 Jalapeno OP the_joey_o May 12, 2014 at 12:33 UTC Rommy IT Regards,Salvador Marked as answer by IamMredMicrosoft employee, Owner Thursday, May 13, 2010 6:53 AM Monday, April 12, 2010 1:25 PM Reply | Quote Moderator 0 Sign in to vote Well, I'm All Activity Home Coding, Scripting and Servers Programming (C++, Delphi, VB/VBS, CMD/batch, etc.) vbs script to change documents paths do another location Privacy Policy Contact Us © 2001 - 2017 MSFN

But thanks for trying to help anyway.... If the latter one, I find it a horrible idea. 3 Jalapeno OP jabeatty May 10, 2014 at 2:58 UTC Krizz wrote:I'm not familiar with Onedrive Pro - Thanks in Advance! #16 dm_4ever Total Posts : 3712 Scores: 93 Reward points : 0 Joined: 6/29/2006Location: Orange County, California Status: offline RE: My Documents Location Thursday, July 13,