Batch File Copy Folder To Another Location Overwrite







The folder currently has only this one file: Image 1. dear sir, i want a batch file for task scheduler tally erp 9. Please! For the sake of modernity, and saving yourself from digesting the wall of text that Meir Lipnick posted, use PowerShell! His way works, but was invented in the days of Windows NT/2000, why people still prefer it I will never know…. This switch takes another argument. dvips filename--- print. ini c:\windows /y. The command is analogous to the Unix mv command and to the OpenVOS move_file and move_dir commands. If you are using XCOPY for this purpose, you will probably want to make a copy of the program (XCOPY. Xcopy allows us to do this. I have a simple DOS batch file that will copy files from "pc" to "pc a", then move on to copy from "pc c" to "pc a" - Answered by a verified Programmer We use cookies to give you the best possible experience on our website. Wget is extremely powerful, but like with most other command line programs, the plethora of options it supports can be intimidating to new users. The batch file copies set of files to a different server from the web server I have logged in. And here is another updated version, this one calling ExifTool at the end to tag all the. bat can be substituted for any file(s). Batch File Copy and Move without overwriting. You can copy files and folders from your working copy to another location in the repository using TortoiseSVN → Branch/Tag. I would have though any file transfer program would need to support a switch to force overwriting of files in order to be to be really useful (assuming the server givs you permission to overwrite files) How strange!. Final Thoughts: It is another handy batch WMA to MP3 converter that you can use to quickly convert multiple WMA files to MP3 format. If you are moving only one file, you can also include a file name if you want to rename the file when you. Basically I need to get Coldfusion to copy a folder called "project" and its contents these include folders and excel files from my C: drive to another folder called "jobs" located on my C: drive. How To Transfer Avchd Files To Android. Specifies the new location of the file. Recently I was asked if I knew how to “flatten” a folder hierarchy. If the file being moved is a sparse file and the file system to which it is being moved does not support sparse files, mv warns that the resulting file will be larger. C:\tools\copyFolderStructure_freecommander_robocopy. It can be in a specific folder name (e. git checkout refuses when the wanted ref is already checked out by another worktree. Copy all files and directories in dev recursively to subdirectory bak: $ cp -R dev bak. › Renaming files in a folder › copy specific files from one folder 2 another › Use batch file to copy 1 file to N folders › Count the no. Here's how to set it up: Step 1: Make sure you have the Google Drive desktop application installed on your Windows 7 PC. Choose what to do if there's a pre-existing copy of the file. and in \\10. (The same thing can, of course, be accomplished just as easily using cp command, which is used to copy files, i. If I had a thumb drive and I wanted to make two files go to two different locations by just running the script. Now, you can easily overwrite system files without any problems. DNG files: 'Batch file to Copy and Convert ML Raw footage to a specified location using drag and drop ' By Val Gameiro Option Explicit Dim arg, newarg(), projname, destfolder, subfolder, wshShell, i, response, objShell, objFolder, objFolderItem. Enables a special output mode for svn diff in which the content difference for a file created via a copy operation appears as it would for a brand new file (with each line therein appearing as an addition to an empty file) rather than as a delta against the original file from which the copy was created. When this option is checked. I only wanted to pick up and copy the -video- files. For moving folders, Batch Script provides the MOVE command. I need to copy the files to another location where I have multiple folders for each school. so the question is, anybody know the script batch to copy files from A to B but it won't overwrite the files if exist, it means just copy files from folder A if not exist in folder B? for example, in D:\Folder\ there are test1. At the very outset, launch your Outlook application. By default when you download a file with wget, the file will be written to the current directory, with the same name as the filename in the URL. /A Copies only files with the archive attribute set, doesn't change the attribute. I would like to copy a set of files listed in a text file in the same folder structure to another location. But I do not want Windows to copy every file and overwrite existing ones. Batch File Copy and Move without overwriting. ' Copy the file to a new location without overwriting existing file. pst) in Outlook. Dim dFilePath As String = String. install - Copy files and set attributes. Latest update on December 12, 2009 at 08:35 AM by aakai1056. You cannot convert the current drive. Hi, I'm using Win98SE, I need help to edit a DOS batch file to delete everything in: C:\WINDOWS\Temporary Internet Files\Content. Press again on the button: Offline Folders File Settings… Now browse to the new location of the ost-file. I would like to create a scheduled task to copy certain files from one hard drive to another, as a backup. Unlike other built-in file copying commands such as Copy and XCopy, Robocopy is designed for reliable copy or mirroring of entire folders of any size, and in the copying process, ensure that all NTFS ACLS, attributes, owner information, alternate data streams, auditing information, timestamps and properties are copied except security. name environment property. source: The source path of the file(s) to copy. Make sure you remember where you save this file. Batch File Copy Backup Files with Task Scheduler Automatic copy any file in folder to folder in window 7 Running a Batch File from Task Scheduler Without User being logged In. It should be noted that the destination directory F:\testbatch\test2 will already have some of the same files as the source folder, and I need these files to be overwritten. The problem: We want to loop through a file where either the name or path has a space in it. The batch file will create up to 1000 floppy image files in the directory, numbered according to their slot position. Batch files are great for running multiple commands, especially if you configure it to be able to run multiple times. Powershell: Move-Item - Move an item from one location to another (move/mv/mi. However, you don’t need to dig into each and every folder to do that, as there are several ways to quickly copy or move files from all the sub-folders to a single folder — i. Remarks * *. Shadow Copy uses the Volume Shadow Service allowing you to copy locked and in use files from one location to another with the aid of a simple user interface. The following simple batch file will copy the named file from your given folder to the other, it will verify that it copied OK by comparing the two files, and will then delete the original file if the verification passes. That is, copy all of the files contained within a folder tree to the root of the tree (or to any single folder). By copying from the keyboard console (COPY CON:) to the screen, files can be created and then saved to disk. I found another good reason to use R for this operations: I need to operating on files as a preliminary step to my statistical analyses. Batch copy file overwrite keyword after analyzing the system lists the list of keywords related and the list of websites with related content, in addition you can see which keywords most interested customers on the this website. Code tip shows how to copy or move a file in Java from one location to another using FileSystem, Files, Path classes from NIO API with example. This batch file will create a folder specified on the command-line (if it doesn't already exist) and copy the files from the Files2Copy folder into it. Perhaps there is a read-only file in the folder. Hello, I have Network Folder A(source)I want to nightly copy/overwrite Network Folder B(Destination). I used it to successfully run a bat file from CMD. I have spent many hours but without effect. ROBOCOPY /MOVE - Robust File and Folder Copy. I would like first for the script to check the local PC and if a certail folder exists already, to delete it first and then copy the. Batch File to Copy and Move files and Folders from one place to another Here is an example of a BATCH file that can run be run manually or scheduled in Task Scheduler that will Copy of files and folders to a new location on a 2nd server or NEW FOLDER on the Same server. Shell script to copy a specific file from one folder to another with date file in a specific folder. Therefore to get the location of an executing batch file from within that batch file you can use the variable %~dp0. keepthesefiles. This isn't npm's fault. copy /-y will causes prompting to confirm you want to overwrite the file. I don't know where I make a mistake. CreateDirectory(targetPath); // To copy a file to another location and // overwrite the destination file if it already exists. Then browse to the target folder, right click and choose TortoiseSVN → Paste. You can choose to open several files or folders at once. zip, and in the post installation task I created, it executes the batch file "InstallWorkflows. Copy files and/or directory trees to another folder. Navigate to the desired folder and select it. files produced by LaTeX). Destination can consist of a drive letter and colon, a directory name, or a combination. Use this to move a cut file or create a second instance of a copied file in a new location. When this option is checked. Hi, I have a file with no extension called simply, D:\file I want to copy this to multiple locations, eg e:\file , f:\file sometimes there will already be an older version, so I would like it to overwrite the file. Back up important files with this simple batch file you'll set up a backup or mirror folder in a location other than the one usually used for storage. File and Folder Watcher continuously monitors one or more folders for new files. This batch file will create a folder specified on the command-line (if it doesn’t already exist) and copy the files from the Files2Copy folder into it. pdf and copy it. doc newfile. Unlike other built-in file copying commands such as Copy and XCopy, Robocopy is designed for reliable copy or mirroring of entire folders of any size, and in the copying process, ensure that all NTFS ACLS, attributes, owner information, alternate data streams, auditing information, timestamps and properties are copied except security. HowTo: Use a FileSystemObject to copy a folder hierarchy: FileSystemObject, File System Object, FSO, CopyFolder, copy folder, folder, hierarchy, copy directory: HowTo: Copy files in a directory that match a pattern using Dir and FileCopy: Dir, FileCopy, pattern, copy, files: HowTo: Make a file containing a list of numbers in two ways in VB. If you are moving only one file, you can also include a filename if you want to rename the file when you move. Prompts you to confirm if the file is going to overwrite a file in your destination. If you do not like application. Powershell: Move-Item - Move an item from one location to another (move/mv/mi. Rather, it merely changes the last access times for such files. The xcopy command is a Command Prompt command used to copy one or more files or folders from one location to another location. Converts FAT volumes to NTFS. Furthermore, these tools usually do not overwrite the existing data while scanning the NSF file using fast yet sophisticated algorithms. ) You may modify this batch file into CU. move filename destinationFolder. As you can see from this sample code, I'm using the Ant copy task to copy files from source locations to other destination locations. Batch File Copy Command - posted in Windows XP Home and Professional: hello every onei am just started to learn about batch files, and done some really basic ones So i was just trying out the copy. Rather than just copying all the files and directories, copies the whole directory tree, subdirectories and all, to another location. I don't know where I make a mistake. Unlike other built-in file copying commands such as Copy and XCopy, Robocopy is designed for reliable copy or mirroring of entire folders of any size, and in the copying process, ensure that all NTFS ACLS, attributes, owner information, alternate data streams, auditing information, timestamps and properties are copied except security. jpg (file 1. What should I add in the code to copy the file and rename (add the number at the end) if the file has been already copied to the destination folder. If you have pictures mixed in with video files or documents stored within the wrong folder, it can be tedious to manually have to move them to the right place. A nice feature of touch is that, in contrast to some commands such as cp (which is used to copy files and directories) and mv (which is used to move or rename files and directories), it does not automatically overwrite (i. Copying individual files and renaming any duplicates. Using copy command, we can copy files from one directory to another directory. Example FTP batch file download_logfiles. Batch Commands, an overview of the DOS, Windows and OS/2 commandlines. -r-- recursive. If you want the converted files to be placed in the same subfolders as the BMP files I can either give you a different BAT file or you can simply copy the subfolders from MainJPG to Main. Attributes are defined by NTFS. rcp - Copy files between two machines. Batch file scripts below will register DLLs, copy or moved files. A batch file is a text file that contains the file records for archived content items. xcopy "D:\test1" "A:\Backup" /s /e. cmd" extension. The content I've got so far is CD\ xcopy c:\forcopy\*. Today's piece shows how to automate a well-known Windows open source SFTP client. REG file: REGEDIT [ /S ] addsome. File to Copy All Subdirectories onto Another. First off open up notepad++ and go to languages and click on batch then type in "@echo off" at the beginning of every batch file you need to type that in. C# - How to copy files and overwriting existing files if exists in a folder by using C Sharp Scenario: Download Script You are working as C# developer and you need to write a program that should copy all the files from a folder to another folder, In case files already exists, you want to overwrite with new file from source folder. search multiple files, copy+paste to new folder (batch file software?) I am a complete newbie when it comes to batch files and batch file software, so apologies in advance. The first four lines of this code will give you reliable YY DD MM YYYY HH Min Sec variables in XP Pro and higher. I manually move each folder/file to the new location. The base file will remain on its original location, and will also be copied to its new location as specified in the batch file. source: The source path of the file(s) to copy. The source may be removable media, any directory within the system directories of the current Windows installation, the root of any drive, the local installation sources, or the Cmdcons directory. Another switch I like to use is /D This is handy when doing things like backing up just data files to another hard drive. V2, and needs the files/folders to be placed in this new location for the app to see them:. txt) src : folder1\folder2\A. Re: Code for CMD file to copy folder and contents to other Drive The /s is redundant when there is already an /e. Using couple of its features in this article, we will see how to copy or move files from one folder to another folder. After files are copied to temp location it should be zipped. The /S switch is optional, it skips the message dialogs before and after the import of the *. bat with the below two lines and place it in the parent directory created in step 1. Converting DOS Batch Files to Shell Scripts. A batch file is a text file saved as a. The archive can also be created on a remote file system such as an NFS mount. Copy, delete and move files in VB. To copy a directory (and all the files it contains), use scp with the -r option. Move files to another directory. exe B:\source-folder\*. Attributes are defined by NTFS. Files are available under licenses specified on their description page. Copy all files and directories in dev recursively to subdirectory bak: $ cp -R dev bak. This command recursively sends your changes to the SVN server. As we mentioned above, cp command is a command to create copy of files and directories. How to automatically back up your personal files in Windows 8. cnf files): init-config. It will need to create any files or folders that are new since last backup. iam trying to create a batch file to help user's in an install of a new application software. Equivalent Windows command: ROBOCOPY - Robust File and Folder Copy. Since this is a batch file, you could also add multiples versions of this command in the same file. Quickly send files to your backup location. When you save/convert a file to a previous version, the conversion tools strip out the information specific to the current release or converts them to another object type. Discussion COPY is usually used to copy one or more files from one location to another. I DO NOT want to over write any existing files (skip existing files). The process of getting changes from the server to your local copy is known as updating. If you are saving the processed files to a new location, you may want to create a new folder for the processed files before starting the batch. Transfering Files From Local Computer to Connected Remote Desktop Session HAL9000 Updated 3 years ago Windows 27 Comments It’s quite easy to transfer files between computers on the network, all you have to do is select the folder to be shared and other users can find and connect to that folder and the files inside. destination Specifies the location and/or name of new files. Man task is: Create a folder in the document library, then copy a default local folder/files to the newly created folder on the sub-site. REN - Rename a file or files. Fortunately, In Windows 7 and above, you now have the option to rename multiple files (it’s called batch-renaming or renaming in batch). I want to copy files or folders from one drive to another on Windows 7. I used a simple way to copy the shared log files continuously and in silent mode so I thought I would share it. I've done some research on Google etc but I seem to just be getting more and more confused trying to use various different scripts and programs and reading different info on. Below are steps on how to copy a single file from one directory to another directory. Copy or Move one file. --overwrite-ignore --no-overwrite-ignore. running this. The -r option tells PSCP to descend into any directories you specify, and to copy them and their contents. I would like to write a simple script (. I would like to copy a set of files listed in a text file in the same folder structure to another location. How To Transfer Avchd Files To Android. I need to copy individual files to multiple domain computers and over write the existing files. Powershell: Move-Item - Move an item from one location to another (move/mv/mi. Choose Organize and then Copy from the menu at the top of the folder's window. I want to create a batch file that copies a entire folder to another location. This helps in automating things and reducing the. * E:\web\newfolder /Y pause. One thing I’m seeing is it doesn’t allow me to choose an individual file, only a folder from the “Load from” drop down. Changed Filename mask to allow "\" file path separators and Fotosizer will automatically create the folders. Type xcopy sourcedestination /O /X /E /H /K and then press ENTER, where source is the source path for the files to be copied, and destination is the destination path for the files. A file or folder path is like an address for where the file is kept on your computer. docx d:\backup\folder\. destination: Specifies the new location of the file. 'You can also use this to copy the files from the last ? days 'If Fdate >= Date - 30 Then 'Note: If the files in ToPath already exist it will overwrite 'existing files in this folder Dim FSO As Object Dim FromPath As String Dim ToPath As String Dim Fdate As Date Dim FileInFromFolder As Object FromPath. cp code generator. Thus, if you copy a file from Applications to your Home directory, it will acquire your user name as the owner and staff as the group. txt) src : folder1\folder2\A. BDEBUGGER will add a missing. Hi , I have two folders - SourceFold and DestFold There are several sets of Files in the sourceFold (each set has two files in it - For ex. How to copy files in Linux and Unix. Here is a simple way to copy a file from one location to another while preserving all destination files. ' This method shows how to move files from one folder to another folder. c bak cp: overwrite 'bak/test. TIMEOUT /t 3600 /nobreak Required. For example everyday at the start up of windows I want to copy. Is it possible to write a macro that would open all files in a certain folder? The folder name and location will always stay the same but the name of the files within and the amount of files may change. Specifies the location to which you want to copy a file or set of files. , Drag-and-drop, COPY, XCOPY, MOVE, or XXCOPY) preserve the file's Last-Modify date. Index Your Files is an alternative way for you to Index and Search through all your files or folders on Local or Networked Drives. Move files to another directory. Fixed Add from Folder to correctly use file type extension filters from Options dialog. The following example shows the different variants of the copy command. MSSQL database files fit this description. Another thing i want to know that if i upload my program's updated exe file to sky drive and suppose in my app there is a command button 'update software' in the click() of command button there is code to connecto to internet and download directly to the desired folder. Batch Commands, an overview of the DOS, Windows and OS/2 commandlines. FOR %f in ("frompath\file\*. Shut down the database. Syntax ROBOCOPY Source_folder Destination_folder [files_to_copy] [options] Key file(s)_to_copy : A list of files or a wildcard. you'll use the batch file to copy the. With Test-Path, we are preserving all existing files and copying over new files. The problem is, if one of the files covered by the wildcard already exists in the archive-bkgdata folder, the mv command does not move the files. Selecting this option will cause the Select Folder dialog box to appear. Using the Send to context menu option, you can right-click on any file or folder and send it straight to your Google Drive folder. Specifies the location to which you want to copy a file or set of files. Looking to go one step further and copy an entire folder structure (folder with sub-folders and files) to another folder in a document Library of another site. When pasted, a cut file is removed from the original location. I used it to successfully run a bat file from CMD. Duplicating files or folders creates an exact copy of the files (or folders) in the same folder as the original but with a different name. Copy a Folder to Another Folder and Retain its Permissions. If the file is small enough make another copy onto a diskette and set that aside away from harm. All the files were in a single folder, and there were millions of files. echo Save this in a new file > newfile. [status,message,messageId] = copyfile( 'myfile1. not all users have the application, for licensing make sure to only install those users that have the software. Another thing i want to know that if i upload my program's updated exe file to sky drive and suppose in my app there is a command button 'update software' in the click() of command button there is code to connecto to internet and download directly to the desired folder. For programs, however, I do tend to use the same name as the given program's executable unless it is a long name. Could you please help me on this. Else it should save in the local given path. You can choose to open several files or folders at once. The days seem to start early, and the evening arrives later this time of year in Charlotte, North Carolina. Open Set: Adds all files contained in the current Set. The resulting batch file can be started from a command prompt, another batch file or another application. serial numbers class a codes class c codes year codes 703 pool, diesel 700 pool a 1980 705 pool 791, 792 701 pool b 1981 706 pool am. Im trying to make a installer using a batch file. Fixed Add from Folder to correctly use file type extension filters from Options dialog. Shadow Copy uses the Volume Shadow Service allowing you to copy locked and in use files from one location to another with the aid of a simple user interface. However I made an exception for the following "special" case profiles - Default User. How To Transfer Avchd Files To Android. Wget is extremely powerful, but like with most other command line programs, the plethora of options it supports can be intimidating to new users. Multiple directories can be backed up comparatively easy with a simple click, by creating and running a batch file. This way your files will be replicated to all domain controllers so there is no specific place in which computers need to reach, in order to copy the files. Therefore to get the location of an executing batch file from within that batch file you can use the variable %~dp0. m in the current MATLAB folder or directory, you can execute the commands in the m-file by simply typing filename at the MATLAB command window prompt. Microsoft posts workaround for shutdown bug in Windows 10 build 18999 and later · in Copy all *. /A Copies only files with the archive attribute set, doesn't change the attribute. This command recursively sends your changes to the SVN server. Move with Overwrite. FOR %f in ("frompathfile*. zip, and in the post installation task I created, it executes the batch file "InstallWorkflows. Click Start, and then click Run. You can specify the command and file set on the commandline itself, or read them from other files. On Linux system, we can use cp command to do it. Rename, copy, and move files and folders. For example, let’s say I want to copy my picture on the desktop to a new folder on the desktop. The "ao" switch allows you to specify whether you want to overwrite old files. My thought was to have windows task scheduler run a batch file each morning to open the network drive, copy all files ending in "_3" to a folder on the local computer (C:\Panel) and delete the original files ending in "_3" on the network drive. To ensure they are selecting the correct files, can a Batch file work for this rather than the person selecting the files and copy?. Specifies the location and name of a file or set of files to which you want to copy. Using copy command, we can copy files from one directory to another directory. Basically, you have to install a hex editor, which lets you view the hex code for a file and more accurately see the data. Our software and services protect against more risks at more points, more completely and efficiently, enabling confidence wherever information is used or stored. /D:m-d-y Copies files changed on or after the specified date. COMP COMPACT CONVERT COPY DATE DEFRAG DEL DIR Compares the contents of two files or sets of files byte-by-byte Displays or alters the compression of files on NTFS partitions. Script/batch file that copies two files from a drive(usb) to a location within a windows directory. and in all the machines, the Destination Folder should be shared with Read/Write access. This script should work under Windows XP, 2000, 2003, 98/95 etc. copy /-y will causes prompting to confirm you want to overwrite the file. " Does this need to be a VB Script, or can I do this with batch files? If so, what am I missing?. The copy command allows users to copy one or more files to an alternate location. dvips filename--- print. If you copy a file from one location to another, the copy generally acquires the attributes of its enclosing folder. To upload files via FTP, read Uploading WordPress to a Remote Host. Copy the autoexec. DNG files: 'Batch file to Copy and Convert ML Raw footage to a specified location using drag and drop ' By Val Gameiro Option Explicit Dim arg, newarg(), projname, destfolder, subfolder, wshShell, i, response, objShell, objFolder, objFolderItem. Here is a simple way to copy a file from one location to another while preserving all destination files. Equivalent bash command (Linux): cp - Copy one or more files to another location. About Uploading Files on Dashboard. Please! For the sake of modernity, and saving yourself from digesting the wall of text that Meir Lipnick posted, use PowerShell! His way works, but was invented in the days of Windows NT/2000, why people still prefer it I will never know…. By default Robocopy will only copy a file if the source and destination have different time stamps or different file sizes. ROBOCOPY - Robust File and Folder Copy. Copy a directory from one location to another. to a new text file. This should work for every user having a profile folder under C:\Documents and Settings. Here is the batch im using. For moving folders, Batch Script provides the MOVE command. Another option would be to make a batch file to delete files not accessed recently from the destination directory. docx d:\backup\folder\. The profile you customized now resides in the default profile location (C:\Users\Default) so the utility can now be used to. If an export contains more than 1000 revisions, a new batch file is created. Ctrl + V is the shortcut to paste. › Renaming files in a folder › copy specific files from one folder 2 another › Use batch file to copy 1 file to N folders › Count the no. The xcopy command, with its many options and ability to copy entire directories, is similar to, but much more powerful than, the copy command. Please help … Appreciate ur swift response! Regards!. We needed a solution for a shared folder that we wanted to control so that users didn't use it as a lazy dumping ground for their files. This is a handy option because it can help prevent you from making mistakes. Wildcards may be used to delete multiple files. I will supply a template with the columns (see briefing document). To copy files to your Citrix Session from your Local PC/Desktop, follow these steps:. Re: Code for CMD file to copy folder and contents to other Drive The /s is redundant when there is already an /e. Open Files: Adds all files currently open in Revu. Destination can consist of a drive letter and colon, a folder name, a file name, or a combination. As we mentioned above, cp command is a command to create copy of files and directories. in the log you can create a batch file rather. Copy(sourceFile, destFile, true); // To copy all the files in one directory to another directory. Copy/Sync Files and Directory Locally Copy/Sync a File on a Local Computer. The address of either folder or pic can be found by right clicking either folder or picture and selecting properties. BDEBUGGER will add a missing. (Win 2K ResKit). In this case, Move-Item behaves differently than Copy-Item and refuses to overwrite files and folders. Hi , I have to open an excel file say RESULTS from a batch file. I found another good reason to use R for this operations: I need to operating on files as a preliminary step to my statistical analyses. The information here is great. (Win 2K ResKit). After that, set the bitrate, output audio format, and output file location from its interface. This command is similar to the Linux cp command, but it does not match with the full functionality of cp. The following example shows the different variants of the copy command. V2, and needs the files/folders to be placed in this new location for the app to see them:. cp file1 file2 copies file1 to file2 , overwriting file2 if it already exists (see Example 16-6 ). Conversely, if you copy a file from your home directory to the Applications folder, its permissions change to that of system and admin. You can manually drag one file that will be replaced to the first place of the file, so that the "Copy File There is already a file with the same name in this location" windows will prompt within short time, and then check the "Do this for the next N conflicts" box, copy and replace the rest files. Copy from one location to another using batch script based on modified date and also newly added files in source. Batch file to copy files from C drive to USB Hi all, To increase our backup solutions, we have decided to backup our SQL database every hour to a folder within the C drive (we couldn't get it to backup straight to a USB drive). To edit the HOSTS file we need to use a method that allows us to save the file to it’s original location, which is: C:\Windows\System32\Drivers\etc. For example everyday at the start up of windows I want to copy. What I need is something that synchronizes files on an internal hard drive to an external one. Else it should save in the local given path.