#NOTE: The use of the work is only permitted for education use only, the author that means i, am not responsible for any illegal use of the work!
A batch file script written to automatically traverse all the file system of windows operating system and look for images (Compaitaible with Windows 10) and then transfer the data either in LAN to other machine or via internet to some server.
Prerequisites
- Curl should be Present in the machine where script will run
- A remote http/https appache server along with PHP to accept the file upload (just in case if you are using to send over internet)
Things to Do
- Add command line arguments to control the script
- Download CURL if not present in the system and then utilize it
Bugs
- Ping is not working to detect local machine/internet server presence
Operations (It supports three very basic operations)
- if operation is set to 1 then transfer mode is set as "Internet Server"
- if operation is set to -1 then transfer mode is set as "LAN Machine"
- if operation is set to 0 then then no transfer will take place it will dump the scanned image file locations
How to Run for LAN transfer?
- If you are using local LAN transfer then open the scan.bat code and update the IP address along with shared folder name in LAN
- open the code of scan.bat and check if the operation flag is set to -1 (LAN transfer mode)
- Simply double click or invoke the script in remote side to initialize the transfer ofcouse for LAN operation remote and receiver should be in same network
How to Run for Internet transfer?
- open the scan.bat file and update the remote server address (use localhost if testing on local machine)
- copy the uploader directory to the server you are using to accept and store files, e.g. in case of XAMPP copy the folder in htdocs directory
- open the scan.bat file and set the operation flag to 1 (Internet transfer mode)
- You are good to go now, double click or invoke script in remote side to test
How to just dump image locations in file system?
- Just open the scan.bat code and set the operation flag to 0 (dump mode)
- double click or invoke the file no other setup is needed
if you are interested to have some more reliable and advance control over transfer then here is another repository of mine, it is designed in C# to accomodate the special featuers https://github.com/Zedstron/Yet_another_advance_image_scanner_and_sender