Can anybody provide me
any help or web link..
for making Batch files for:
1. disk check with options (chkdsk)
2. copying data from one location to another.
Thnkx.
![]()
+ Reply to Thread
Results 1 to 17 of 17
-
AnuragGuest
-
You might want to explain what you want to do better. If you want to do a unattended backup of data files from one drive to another, maybe a backup program like Acronis True Image or similar? Or you may be able to write a script that runs off the OS scheduler to do similar. More information would help.
And this would be better answered in our Computer Forum. Moving you. -
AnuragGuest
Thnkx..
OK here's the situation
one folder having 5 sub folders in D:
Another folder having 5 sub folders in E:
Now I'll have to do it one by one
i.e. from one sub folder to another sub folder
So can I make a batch file, so that
moving data from D: to E:
can be done simultaneously.
And about disk check,
like I want to check all my 4 drives simultaneously
with a single click on such a batch file. -
Open notepad and type in the folder destinations and save as run.bat,make sure you save as all files and not txt.
eg:copy temp c:
copy multi c:I think,therefore i am a hamster. -
in notepad, if you save as "run.bat", with the quotes, it will save as a literal. You can do it with any text document, such as "homepage.html' for a web page.
-
"Quality is cool, but don't forget... Content is King!"
-
The problem is, you have to tell windows to unmount the disk first. If this is you boot drive, you select yes, and it will add it to an AT command a next boot up.
Or are you doing this on a nonboot drive or from a winxp boot disc? -
AnuragGuest
I'm using vista...
I'm not able to scan the C: (windows drive)
not even during boot.
It says: cannot run "chkdsk" for RAW drives.
Thnkx. -
Sounds like you have 2 totally different requirements.
1st is Disk check, and that should be done on a regular basis and better done with a Boot/Repair Utility CD, so that all discs can be unmounted. This can easily be scripted.
2nd is really Synchronized folders, which you could do with Windows itself. Just read the help info on synchronized folders (usually reserved for network-accessed drives, but you can do it with others). Or Google it. Beyond the OS, there are numerous apps that do file & folder synchronization and backup. Since synchronization is meant to be automatic (usually as a continuous background process), you don't really need to "script" it. Just pick the folders to be synced.
Scott -
You might want to skip old Command (DOS) commands altogether. The future is Powershell and scripting....Just us old birds hang on to batch files.
In this case, you drive is showing up as raw Not formated in chkdsk.
I would boot from your Vista disc and do it from there.
I would venture to guess your computer has 2 partitions, 1st being a OEM repair partition, 2nd being your visible OS partition -
Open up a CLI and type "XCOPY /?" and "CHKDSK /?" that will give you a list of switches for each command.
I use Xcopy all the time for copying directory trees, even incremental backups of folders on one computer to folders on another computer across the network.
Code:xcopy /s /e /d /y /c \\number3\music \\number2\music >update.txt
-
AnuragGuest
I need to transfer data from one drive to another
data in 5 subfolders in e:
are to be copied to
5 another subfolders in f:
So, I need to perform copy/paste
one by one i.e. for each subfolder
Now I want to know whether this can be performed
via a single click on a batch file.
Thnkx
-
AnuragGuest
And I'm also getting problem in scanning C:
As it in use by the operating system
so Its suggestes to check C:
at booting.
When I click YES
Then at the time of booting
error occurs that:
CHKDSK is not for RAW drives
Can anybody give me a solution to this problem.
Thnkx
-
http://www.z-a-recovery.com/art-raw-filesystem.htm
And several other posts suggest that the drive is either corrupt or failing, and needs more than Chkdsk can provideRead my blog here.
Similar Threads
-
Batch "file creation from a text file, Placed into a created directory
By Muther in forum ProgrammingReplies: 5Last Post: 24th Sep 2015, 18:29 -
Need help with ffmpeg batch file
By DarrellS in forum Video ConversionReplies: 3Last Post: 25th Jun 2012, 15:43 -
Batch File. Need help
By Seritin in forum ProgrammingReplies: 1Last Post: 6th Apr 2010, 11:16 -
need some batch file help
By iamspuzzum in forum ComputerReplies: 6Last Post: 22nd Mar 2010, 16:19 -
Batch file that can delete a specific file
By Dark_Raven in forum ProgrammingReplies: 1Last Post: 10th Jun 2008, 08:16