A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Batch file Copy



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old April 6th 17, 07:51 PM posted to alt.comp.os.windows-10
Keith Nuttle
external usenet poster
 
Posts: 1,844
Default Batch file Copy

I am trying to write a a batch file that will copy files for that
Program file(86) to a directory into another directory so it can be backup

How do I have to change the following so that it will do what I want.
It's all one string.

copy "C:\Users\userID\AppData\Roaming\Corel\WordPer fect Lightning\*"
"C:\personal data\*"

I want to transfer the data files for Corel's Lightning note program to
a directory that is rountinely backup and run the file before the actual
backup begins.
Ads
  #2  
Old April 6th 17, 09:03 PM posted to alt.comp.os.windows-10
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Batch file Copy

Keith Nuttle wrote:
I am trying to write a a batch file that will copy files for that
Program file(86) to a directory into another directory so it can be backup

How do I have to change the following so that it will do what I want.
It's all one string.

copy "C:\Users\userID\AppData\Roaming\Corel\WordPer fect Lightning\*"
"C:\personal data\*"

I want to transfer the data files for Corel's Lightning note program to
a directory that is rountinely backup and run the file before the actual
backup begins.


What do you use for backup ?

How about creating a custom Library, which does nothing
but corral directories needing backup ? Would that work ?

Paul
  #3  
Old April 6th 17, 09:24 PM posted to alt.comp.os.windows-10
Jonathan N. Little[_2_]
external usenet poster
 
Posts: 1,133
Default Batch file Copy

Keith Nuttle wrote:
copy "C:\Users\userID\AppData\Roaming\Corel\WordPer fect Lightning\*"
"C:\personal data\*"


xcopy /s "C:\Users\userID\AppData\Roaming\Corel\WordPer fect Lightning\*"
"C:\personal data\"



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  #4  
Old April 7th 17, 12:56 AM posted to alt.comp.os.windows-10
Ken Blake[_5_]
external usenet poster
 
Posts: 2,221
Default Batch file Copy

On Thu, 6 Apr 2017 14:51:44 -0400, Keith Nuttle
wrote:

I am trying to write a a batch file that will copy files for that
Program file(86) to a directory into another directory so it can be backup



Two points:

1. A backup of program file is useless unless you still have the
\Windows folder that the programs were installed under.

2. A backup of anything to a different folder on your drive is almost
useless; I don't recommend backup to a second folder because it leaves
you susceptible to simultaneous loss of the original and backup to
many of the most common dangers: drive failure, severe power glitches,
nearby lightning strikes, virus attacks, even theft of the computer.

I wouldn't do what you want to do.
  #5  
Old April 7th 17, 01:59 AM posted to alt.comp.os.windows-10
mick
external usenet poster
 
Posts: 280
Default Batch file Copy

On 06/04/2017 19:51:44, Keith Nuttle wrote:
I am trying to write a a batch file that will copy files for that Program
file(86) to a directory into another directory so it can be backup

How do I have to change the following so that it will do what I want. It's
all one string.

copy "C:\Users\userID\AppData\Roaming\Corel\WordPer fect Lightning\*"
"C:\personal data\*"

I want to transfer the data files for Corel's Lightning note program to a
directory that is rountinely backup and run the file before the actual backup
begins.


Why don't you install a sync program then do a one way sync from the
lightening folder to personal data. You can schedule that to happen at
any time before your backup or do it manually.
here's one to start you off https://www.freefilesync.org/

--
mick
  #6  
Old April 7th 17, 11:16 AM posted to alt.comp.os.windows-10
Philip Herlihy
external usenet poster
 
Posts: 208
Default Batch file Copy

In article ,
says...

I am trying to write a a batch file that will copy files for that
Program file(86) to a directory into another directory so it can be backup

How do I have to change the following so that it will do what I want.
It's all one string.

copy "C:\Users\userID\AppData\Roaming\Corel\WordPer fect Lightning\*"
"C:\personal data\*"

I want to transfer the data files for Corel's Lightning note program to
a directory that is rountinely backup and run the file before the actual
backup begins.


Just take the star off the destination folder. If you type:
copy /?
.... you'll see the syntax - the second term is the destination folder.

Be wary of using scripting unless you're prepared to be very careful.
If you look at the first line of your post you'll see a minor typo - do
the equivalent in a script and you may regret it!

I spent years writing stuff like this, but I don't bother now -
certainly for backups. Windows 10 has "File History", which works
brilliantly. I've installed a second disk in my PC (you can use an
external disk, and it doesn't need to be connected all the time) so that
a disk failure doesn't take out both the originals and the backups at
the same time. I've turned on File History, pointed it at the second
disk, and forgotten about it. A couple of days ago I managed to delete
an entire folder full of important files. Had them back in place in
about 60 seconds. You can add locations (like the Lightning folder) to
the list of locations backed up by File History simply by adding them to
a "Library" (any Library, which needed be used in any other way).

--

Phil, London
  #7  
Old April 7th 17, 11:55 AM posted to alt.comp.os.windows-10
JM[_5_]
external usenet poster
 
Posts: 2
Default Batch file Copy

This is one line in a batch file I use for back up.
robocopy "C:\Temp" "F:\SSD Drive C BackUp Files\Temp" /MIR /SEC /V /NP /R:0
/W:30

At the command prompt type help robocopy to see what the switches do.

This line will copy all the files in folder C:\temp to a folder on drive F
named SSD Drive C BackUp Files\Temp.
Add as many folders as you like each on a different line using the example
above.
I did not write this and I don't remember where I got it to give proper
credit. I have found this batch file very useful.

"Philip Herlihy" wrote in message
...

In article ,
says...

I am trying to write a a batch file that will copy files for that
Program file(86) to a directory into another directory so it can be
backup

How do I have to change the following so that it will do what I want.
It's all one string.

copy "C:\Users\userID\AppData\Roaming\Corel\WordPer fect Lightning\*"
"C:\personal data\*"

I want to transfer the data files for Corel's Lightning note program to
a directory that is rountinely backup and run the file before the actual
backup begins.


Just take the star off the destination folder. If you type:
copy /?
.... you'll see the syntax - the second term is the destination folder.

Be wary of using scripting unless you're prepared to be very careful.
If you look at the first line of your post you'll see a minor typo - do
the equivalent in a script and you may regret it!

I spent years writing stuff like this, but I don't bother now -
certainly for backups. Windows 10 has "File History", which works
brilliantly. I've installed a second disk in my PC (you can use an
external disk, and it doesn't need to be connected all the time) so that
a disk failure doesn't take out both the originals and the backups at
the same time. I've turned on File History, pointed it at the second
disk, and forgotten about it. A couple of days ago I managed to delete
an entire folder full of important files. Had them back in place in
about 60 seconds. You can add locations (like the Lightning folder) to
the list of locations backed up by File History simply by adding them to
a "Library" (any Library, which needed be used in any other way).

--

Phil, London

  #8  
Old April 7th 17, 03:20 PM posted to alt.comp.os.windows-10
JM[_5_]
external usenet poster
 
Posts: 2
Default Batch file Copy

Very sorry for the duplicate post

This is one line in a batch file I use for back up.
robocopy "C:\Temp" "F:\SSD Drive C BackUp Files\Temp" /MIR /SEC /V /NP /R:0
/W:30

At the command prompt type help robocopy to see what the switches do.

This line will copy all the files in folder C:\temp to a folder on drive F
named SSD Drive C BackUp Files\Temp.
Add as many folders as you like each on a different line using the example
above.
I did not write this and I don't remember where I got it to give proper
credit. I have found this batch file very useful.

"Keith Nuttle" wrote in message news
I am trying to write a a batch file that will copy files for that
Program file(86) to a directory into another directory so it can be backup

How do I have to change the following so that it will do what I want.
It's all one string.

copy "C:\Users\userID\AppData\Roaming\Corel\WordPer fect Lightning\*"
"C:\personal data\*"

I want to transfer the data files for Corel's Lightning note program to
a directory that is rountinely backup and run the file before the actual
backup begins.

  #9  
Old April 7th 17, 03:34 PM posted to alt.comp.os.windows-10
Keith Nuttle
external usenet poster
 
Posts: 1,844
Default Batch file Copy

On 4/7/2017 10:20 AM, JM wrote:
Very sorry for the duplicate post

This is one line in a batch file I use for back up.
robocopy "C:\Temp" "F:\SSD Drive C BackUp Files\Temp" /MIR /SEC /V /NP /R:0
/W:30

At the command prompt type help robocopy to see what the switches do.

This line will copy all the files in folder C:\temp to a folder on drive F
named SSD Drive C BackUp Files\Temp.
Add as many folders as you like each on a different line using the example
above.
I did not write this and I don't remember where I got it to give proper
credit. I have found this batch file very useful.

"Keith Nuttle" wrote in message news
I am trying to write a a batch file that will copy files for that
Program file(86) to a directory into another directory so it can be backup

How do I have to change the following so that it will do what I want.
It's all one string.

copy "C:\Users\userID\AppData\Roaming\Corel\WordPer fect Lightning\*"
"C:\personal data\*"

I want to transfer the data files for Corel's Lightning note program to
a directory that is rountinely backup and run the file before the actual
backup begins.OP I beleive that is my problem; where to put the quotation marks and

what should be in quotation marks.

I use Syncback as a program to sync my desktop and laptop data. Since
the Corel Lightning data files are not in the directory that is sync, I
am trying to use a batch file which Syncback will run before the sync
starts to move the Lightning files for the User folder to the folder
that is synced (If I need to restore, from the back up it is just a
matter of copying and pasting the files.)

There is another set of files in the Program folders that I want to back
up. There are others like the Pin files for Google Earth that I would
also move to the folder that is being backed up.

In my mind it simplifies things to have every thing to be backed up in
one folder.
  #10  
Old April 7th 17, 03:50 PM posted to alt.comp.os.windows-10
Char Jackson
external usenet poster
 
Posts: 10,449
Default Batch file Copy

On Fri, 7 Apr 2017 10:34:53 -0400, Keith Nuttle
wrote:

I use Syncback as a program to sync my desktop and laptop data. Since
the Corel Lightning data files are not in the directory that is sync, I
am trying to use a batch file which Syncback will run before the sync
starts to move the Lightning files for the User folder to the folder
that is synced (If I need to restore, from the back up it is just a
matter of copying and pasting the files.)


I'm not sure I understand the need for a batch file. You already have a
sync program, so why not use that to sync the Lightning files to the
folder that is synced, then use that same sync program to sync that
folder to the laptop. Simplify your life by using one tool for both
jobs.

  #11  
Old April 7th 17, 06:54 PM posted to alt.comp.os.windows-10
Keith Nuttle
external usenet poster
 
Posts: 1,844
Default Batch file Copy

On 4/7/2017 10:50 AM, Char Jackson wrote:
On Fri, 7 Apr 2017 10:34:53 -0400, Keith Nuttle
wrote:

I use Syncback as a program to sync my desktop and laptop data. Since
the Corel Lightning data files are not in the directory that is sync, I
am trying to use a batch file which Syncback will run before the sync
starts to move the Lightning files for the User folder to the folder
that is synced (If I need to restore, from the back up it is just a
matter of copying and pasting the files.)


I'm not sure I understand the need for a batch file. You already have a
sync program, so why not use that to sync the Lightning files to the
folder that is synced, then use that same sync program to sync that
folder to the laptop. Simplify your life by using one tool for both
jobs.

OP Trying to keep things simple.
  #12  
Old April 7th 17, 08:20 PM posted to alt.comp.os.windows-10
Char Jackson
external usenet poster
 
Posts: 10,449
Default Batch file Copy

On Fri, 7 Apr 2017 13:54:32 -0400, Keith Nuttle
wrote:

On 4/7/2017 10:50 AM, Char Jackson wrote:
On Fri, 7 Apr 2017 10:34:53 -0400, Keith Nuttle
wrote:

I use Syncback as a program to sync my desktop and laptop data. Since
the Corel Lightning data files are not in the directory that is sync, I
am trying to use a batch file which Syncback will run before the sync
starts to move the Lightning files for the User folder to the folder
that is synced (If I need to restore, from the back up it is just a
matter of copying and pasting the files.)


I'm not sure I understand the need for a batch file. You already have a
sync program, so why not use that to sync the Lightning files to the
folder that is synced, then use that same sync program to sync that
folder to the laptop. Simplify your life by using one tool for both
jobs.

OP Trying to keep things simple.


OK, then I definitely recommend using the same sync program for both
jobs. That's by far the simplest approach.

  #13  
Old April 7th 17, 09:25 PM posted to alt.comp.os.windows-10
Big Al[_7_]
external usenet poster
 
Posts: 177
Default Batch file Copy

On 04/07/2017 10:20 AM, JM wrote:
This is one line in a batch file I use for back up.
robocopy "C:\Temp" "F:\SSD Drive C BackUp Files\Temp" /MIR /SEC /V /NP /R:0
/W:30


I use the following:
cd F:\Backup-Daily\Alan\AndroidStudioProjects

C:\windows\syswow64\robocopy C:\Users\Alan\AndroidStudioProjects . /MIR
/NJS /NJH /DST /NDL

I really don't need to put in the full path to robocopy but I did. Not
sure why! But yes, Robocopy is simply like copy [source] [dest]
[options].

The good thing about /MIR is that it will make an exact mirror of the
source. It will remove items deleted, add new items, and update ONLY
the changed items. The latter is the time saver.

I use it to backup things like my Thunderbird, Firefox, Chrome profiles
and 90% of that does not change from day to day so the robocopy is a
great timesaver. All my switches are to turn off the stats that
print before and after the job to make it cleaner on the screen.

  #14  
Old April 8th 17, 01:51 AM posted to alt.comp.os.windows-10
mick
external usenet poster
 
Posts: 280
Default Batch file Copy

On 07/04/2017 20:20:25, Char Jackson wrote:
On Fri, 7 Apr 2017 13:54:32 -0400, Keith Nuttle
wrote:

On 4/7/2017 10:50 AM, Char Jackson wrote:
On Fri, 7 Apr 2017 10:34:53 -0400, Keith Nuttle
wrote:

I use Syncback as a program to sync my desktop and laptop data. Since
the Corel Lightning data files are not in the directory that is sync, I
am trying to use a batch file which Syncback will run before the sync
starts to move the Lightning files for the User folder to the folder
that is synced (If I need to restore, from the back up it is just a
matter of copying and pasting the files.)

I'm not sure I understand the need for a batch file. You already have a
sync program, so why not use that to sync the Lightning files to the
folder that is synced, then use that same sync program to sync that
folder to the laptop. Simplify your life by using one tool for both
jobs.

OP Trying to keep things simple.


OK, then I definitely recommend using the same sync program for both
jobs. That's by far the simplest approach.


I second that. I'm doing a very similar operation, syncing a folder
from app data to documents, it is scheduled to run 15 minutes before
the main sync is done at a scheduled time.
Using Allway Sync Pro.

--
mick
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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






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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.