Hello everyone. I'm trying to make a batch file that will allow me to copy all the files from USB to computer and then send them to a certain ftp server. Now, since I've never done much of cmd programming, I've run into some problems.
which basically runs the test.bat file without any windows popping out, since I want it to be done automatically without any hindrance.
The test.bat file, where my problems begin, contain
@echo off
FOR %%I in (E G H I J K L M N O P Q R S T U V W X Y Z)DO IF exist XCOPY "H:\*\" "C:\Users\Koala\Documents\batch" /-y
Basically, what I want this command to do, is to scan for any recently plugged in USB drives and then copy all of the files from it to a folder in documents called batch. But I can't seem to figure out the command to scan for any plugged in data.
Question
balaton
Hello everyone. I'm trying to make a batch file that will allow me to copy all the files from USB to computer and then send them to a certain ftp server. Now, since I've never done much of cmd programming, I've run into some problems.
Anyway, here's what I got.
testing.vbs contains
which basically runs the test.bat file without any windows popping out, since I want it to be done automatically without any hindrance.
The test.bat file, where my problems begin, contain
Basically, what I want this command to do, is to scan for any recently plugged in USB drives and then copy all of the files from it to a folder in documents called batch. But I can't seem to figure out the command to scan for any plugged in data.
Any help would greatly be appreciated.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts