PC Help Forum - Free Computer Help, Windows, Hardware, Software and more!
 
Become a Member Today!
Search PC Help Forum for Answers
 
Go Back   PC Help Forum - Free Computer Help, Windows, Hardware, Software and more! > Computing (General) > Programming
Programming - [Resolved] writing backup .bat file posted in the Computing (General) forums; Hi, I'm trying to make a .bat that copies all changed data in the documents and settings folder to my external hdd when run. This is what I've ...

REGISTER NOW to remove these Ads

Reply
 
LinkBack Thread Tools Display Modes Language
  #1  
Old 04-08-2008
YZF-R1's Avatar
Bronze Member
My PC
 
Posts: 13
Location: Uppsala
YZF-R1 - See this Members User comments on their Profile page
Question [Resolved] writing backup .bat file

Hi, I'm trying to make a .bat that copies all changed data in the documents and settings folder to my external hdd when run.

This is what I've written so far:

Code:
 
XCOPY "C:\Documents and Settings\tobias.ericsson\*" "E:\Backup\tobias.ericsson" /e /m /i
My problem: "File sharing error" (my os is swedish so i'm not entirely sure about the translation).

Any ideas?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old 04-08-2008
Jelly Bean's Avatar
Tech Support Team
My PC
 
Posts: 2,387
PC Experience: Experienced
Location: Swansea
Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page
Send a message via MSN to Jelly Bean Send a message via Yahoo to Jelly Bean Send a message via Skype™ to Jelly Bean
Default Re: writing backup .bat file

Hello and welcome to PC Help Forum.

I have merged threads please do not double post.

I am sure some one will pick up on your thread shortly.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old 04-08-2008
YZF-R1's Avatar
Bronze Member
My PC
 
Posts: 13
Location: Uppsala
YZF-R1 - See this Members User comments on their Profile page
Unhappy Re: writing backup .bat file

Sorry, my browser does that sometimes.. =/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old 04-08-2008
YZF-R1's Avatar
Bronze Member
My PC
 
Posts: 13
Location: Uppsala
YZF-R1 - See this Members User comments on their Profile page
Default Re: writing backup .bat file

not sure what u mean, im pretty good with english, I just wasn't sure i'd translated the error message exactly as its shown in an english os. My problem is how to avoid the error, naturally .

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old 04-08-2008
madmonkey's Avatar
Site Manager
My PC
 
Posts: 5,094
PC Experience: PC Basket Ball Head!
Location: South Wales
madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page
Default Re: writing backup .bat file

Hey YZF,

The file sharing violation is because Windows would be actively using most of those files, folders and settings in order to function properly, most importantly, the Registry.

You can do one of two things:
a)
As long as the "tobias.ericsson" folder has not been made private, you can create a new account (My Computer, Control Panel, User Accounts), and run that script whilst logged on with a different account.

b)
Alter the script to backup the files and folders you really need, and not all the junk that comes as part of your profile. An example maybe:

XCOPY "C:\Documents and Settings\tobias.ericsson\my documents\*" "E:\Backup\tobias.ericsson\my documents" /e /m /i
XCOPY "C:\Documents and Settings\tobias.ericsson\desktop\*" "E:\Backup\tobias.ericsson\desktop" /e /m /i
XCOPY "C:\Documents and Settings\tobias.ericsson\favorites\*" "E:\Backup\tobias.ericsson\favorites" /e /m /i

__________________

Links: myFavoritesHomepage, Submit your URL to cyberJuice USA / UK online shopping links and blogs

Last edited by madmonkey : 04-08-2008 at 08:12 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old 04-08-2008
Jelly Bean's Avatar
Tech Support Team
My PC
 
Posts: 2,387
PC Experience: Experienced
Location: Swansea
Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page Jelly Bean - See this Members User comments on their Profile page
Send a message via MSN to Jelly Bean Send a message via Yahoo to Jelly Bean Send a message via Skype™ to Jelly Bean
Default Re: writing backup .bat file

I am confused?

What do you actualy need help with?

An error code?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old 04-08-2008
YZF-R1's Avatar
Bronze Member
My PC
 
Posts: 13
Location: Uppsala
YZF-R1 - See this Members User comments on their Profile page
Default Re: writing backup .bat file

madmonkey: thanks alot, I'll try it right away

Jelly Bean: I wrote a piece of code and recieved an error when running the code. I needed help correcting the code so that it'd work.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old 04-08-2008
YZF-R1's Avatar
Bronze Member
My PC
 
Posts: 13
Location: Uppsala
YZF-R1 - See this Members User comments on their Profile page
Default Re: writing backup .bat file

Yey, it worked
thanks again

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old 04-08-2008
madmonkey's Avatar
Site Manager
My PC
 
Posts: 5,094
PC Experience: PC Basket Ball Head!
Location: South Wales
madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page madmonkey - See this Members User comments on their Profile page
Default Re: writing backup .bat file

No problems YZF. Marked as Resolved.

__________________

Links: myFavoritesHomepage, Submit your URL to cyberJuice USA / UK online shopping links and blogs
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply


Go Back   PC Help Forum - Free Computer Help, Windows, Hardware, Software and more! > Computing (General) > Programming




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
File Extensions List Hengis Windows Tutorials 0 02-09-2008 03:27 PM
[Fixed] can someone help me, hijackthis log nomad55 [Fixed] Hijackthis! Logs 13 08-14-2007 12:36 PM
[Resolved] Help: Removal of "Downloader.Agent.uj" AND "MediaPipe P2P Loader"!!!!! Jimmyb30 [Fixed] Hijackthis! Logs 25 01-11-2007 05:47 AM
[Resolved] 20 infected processes..154 infected registrys! brent [Fixed] Hijackthis! Logs 15 11-27-2005 11:37 AM
[FIXED] jtmwyzainoy.exe, thnall1.exe, and aurareco.exe... for dummies. kid_kell [Fixed] Hijackthis! Logs 20 08-31-2005 01:56 PM


All times are GMT +1. The time now is 05:05 PM.