c:\"documents and settings"\user id\"my documents". (user id of course should be the logged on user) Quotation Marks. Anything with a space needs 'em. That's how I get it to work anyway. -----Original Message----- From: windows2000-bounce@xxxxxxxxxxxxx [mailto:windows2000-bounce@xxxxxxxxxxxxx]On Behalf Of Puetz, Christoph Sent: Monday, January 05, 2004 2:56 PM To: 'windows2000@xxxxxxxxxxxxx' Subject: [windows2000] Re: Scripting question Thanks. Unfortunately it does not work. I get "Path not found" error. Any idea why? Christoph _____ From: Robert K Coffman Jr - Info From Data Corporation [mailto:bcoffman@xxxxxxxxxxxxxxxx] Sent: Monday, January 05, 2004 12:48 PM To: windows2000@xxxxxxxxxxxxx Subject: [windows2000] Re: Scripting question stash1="%userprofile%\mydocu~1" -----Original Message----- From: windows2000-bounce@xxxxxxxxxxxxx [mailto:windows2000-bounce@xxxxxxxxxxxxx]On Behalf Of Puetz, Christoph Sent: Monday, January 05, 2004 2:38 PM To: 'windows2000@xxxxxxxxxxxxx' Subject: [windows2000] Scripting question Anyone know how I need to specify the path to the local "My documents" folder on a machine for a vbs script? I am using this script to syncronize two folders. Works fine between two folders when I paths like C:\temp and C:\test. But I seem to get it wrong specifying the path to c:\documents and settings\user id\my documents. (user id of course should be the logged on user Any idea how I can specify that path with the user id retrieved automatically so that it runs on that local my documents folder no matter which user is logged in? I want to allow certain users to manually syncronize the my documents folder with a network share (once everything works) Christoph ' Dim fso, stash1, stash2, stash3, path1, path2 Set fso = CreateObject("Scripting.FileSystemObject") ' ' stash1, stash2, and stash3 are the paths to where the files are that need to be ' synchronized. As computer or folder names change, these variables should be ' updated to reflect the correct information. ' stash1="c:\docume~1\"%userprofile%"\mydocu~1" stash2="C:\\temp\testest" 'stash3="C:\temp3" ' SynchroFiles stash1, stash2 'SynchroFiles stash1, stash3 SynchroFiles stash2, stash1 'SynchroFiles stash2, stash3 'SynchroFiles stash3, stash1 'SynchroFiles stash3, stash2 WorkWithSubFolders stash1, stash2 'WorkWithSubFolders stash1, stash3 WorkWithSubFolders stash2, stash1 'WorkWithSubFolders stash2, stash3 'WorkWithSubFolders stash3, stash1 'WorkWithSubFolders stash3, stash2 ' ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com <http://www.messagelabs.com> ________________________________________________________________________ ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com <http://www.messagelabs.com> ________________________________________________________________________