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. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
Batch file Copy
|
#8
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 |
|
|