Closed Need help with basic batch file Tags: Windows 7 My Documents Favorites Basic Last response: October 18, 2011 12:21 AM in Windows 7 Share John72ok August 26, 2011 12:18:46 AM Hello, I just got a new PC that has Windows 7, am trying to make a batch file to back up "My Documents" to a thumbdrive the same way I did in XP but keep getting "Access Denied" message. This line works fine- xcopy c:\"Users\John\Favorites" j:\ZT\"Users\John\Favorites"\ /e/s/d/y but when I run- xcopy c:\"Users\John\My Documents" j:\ZT\"Users\John\My Documents"\ /e/s/d/y I get "Access denied unable to create directory" There is probably something simple that I'm missing but I don't see it. Any help would be greatly appreciated. Thanks, John More about : basic batch file Best solution itzdanielp a b $ Windows 7 August 26, 2011 12:33:56 AM In windows 7 "My Documents" is renamed to "Documents" so it would be C:\Users\John\Documents Share John72ok August 27, 2011 12:04:35 AM Thanks! You are absolutely right, that works like a champ. I don't understand why I see both "Documents" & "My Documents" listed in Win 7 but that doesn't matter as long as I have my backup. Thanks again! Score 0 Related resources Need help with basic batch file - Forum Need help with batch file - Forum Need Help with a Batch File - Forum Need help with Batch file - Forum Need help with batch file - Forum Can't find your answer ? Ask ! Get the answer cadder August 27, 2011 1:32:28 AM Well in the first post you have the quote marks in the wrong place, should be in front of the c:, but actually the quotes aren't needed in your example. Score 0 John72ok August 28, 2011 12:25:39 AM Thanks for the input, it's working great now. Score 0 itzdanielp a b $ Windows 7 August 29, 2011 10:59:52 PM No problem! Glad I was able to help Score 0 John72ok September 6, 2011 1:13:59 PM Best answer selected by John72ok. Score 0 SR-71 Blackbird a c 395 $ Windows 7 October 18, 2011 12:21:11 AM This topic has been closed by Area51reopened Score 0 Can't find your answer ? Ask ! Publish Related resources Need help with a batch file problem Forum Need help with batch file... Forum Help making a batch file Forum Help with echo batch file Forum I need a batch-file, to open multiple urls with Chrome/Firefox/IE8, using just the tabs? Forum SolvedBatch file help Forum SolvedRequest batch file help Forum Batch File Game Help Forum batch file will not copy needed files Forum batch file help Forum Batch file help!! Forum Batch file help Forum Help for writing batch file to rename files in a folder in particular pattern. Forum SolvedNeed help with a basic shell script Forum Batch file needed to combine all subdirectories to one Forum More resources Read discussions in other Windows 7 categories Configuration Customization Drivers Security Laptops !