On a Windows 7 workstation when you click Start you will see icons named:
Documents
Pictures
Music
Using WinBatch how would I rename Music and then change where it points? I need to change the "library location" which you see when you do a properties on it. I've Googled the heck out of this and its not as easy as I thought it would be.
Did you look at the shortcut functions?
Not sure what is the best way to handle this. The Windows SHSetFolderPath API looks interesting. It apparently assigns a new path to a system folder identified by its CSIDL.: http://msdn.microsoft.com/en-us/library/windows/desktop/bb762247(v=vs.85).aspx
You could make a DllCall to this API: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/DllCall~Information+Change~Target~of~My~Documents~Folder.txt
Actually, the Library feature that was introduced in Vista and then make fully accessible for being managed in Windows 7 is a separate feature from shell shortcuts and well known paths. Unfortunately, Microsoft didn't make any automation-enabled COM interfaces for the Library functionality, so that precludes WinBatch, VBscript and Powershell from making direct use of COM interfaces.
I've been considering writing an extender to expose the Library Management COM interfaces in a way that WinBatch could make use of.
Sounds like a good idea. MSFT was even thoughtful enough to provide a few helper APIs so you don't have to write every last bit of the COM boilerplate yourself.