Sunday, 17 January 2016

How to copy Removable Disk data to HardDisk silently

In This post you will find how you can copy Removable Disk Data to HardDisk without acquaintance or without copy prompt windows that shows the progress of files. follow bellow steps to achieve this.

Step 1: Firstly you have to create 3 files, named as
             backup_FROM_PD_to_HDD.bat
             invisible.vbs
             launch.bat

             

"backup_FROM_PD_to_HDD.bat" is a main file that will do this whole process for you, second file "launch.bat" will use to start copy your data from Removable Disk to HardDisk, and the last one "invisible.vbs" this script file will just hide you copy process. above All files should be available in Removable Disk (launch.bat, invisible.vbs, backup_FROM_PD_to_HDD.bat).
        
Step 2: Open backup_FROM_PD_to_HDD.bat file and write below code:
        
        @echo off
        echo -------------------
        echo Removable Device Automatic Backup
        echo -------------------
        echo No Rights Reserved, do whatever you want with this.
        xcopy "*" "c:\Removable_Backup\" /Y /E /R /H
        echo Backup Complete!
        Pause.

Step 3: Here "c:\Removable_Backup\" is  a path where you want backup of Removable Disk you can change it, but folder should be available before executing launch.bat file.

Step 4: open launch.bat file and write below code:
        

        @echo off
        :: variables
        SET odrive=%odrive:~0,2%
        set backupcmd=xcopy  /s /c /d /e /h /i /r /y
        echo off
        "%drive%"
        wscript.exe \invisible.vbs backup_FROM_PD_to_HDD.bat
        @echo off
        cls


Note: No modification is required here just copy and paste above code in your launch.bat file. Now your source and destination configration for copy file has been done.
        
Step 5: backup_FROM_PD_to_HDD.bat is not enough to hide information from command Prompt, you need to create "invisible.vbs" file and write bellow code:
        
        CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
        
Finally you have done whole configration now time to execute your file "launch.bat", this will copy your Removable Disk Data
to specific folder of your HardDisk, without any acquaintance.

Have fun!..

No comments:

Post a Comment