Discussion Locked

automatic file transfers

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need a method or software to continually scan a directory for specific file types (with a wild card in name) and then move those files to another directory when found. This needs to run as an NT service. The directory to scan has around 2000 files and is very active. Files to be moved are small print jobs.

2 replies

by r. a. caluste

i can suggest two solutions;
1) create a batch file that does the ff: dir /b %1 > F2bMoved.txt. Create a macro in Visual basic (there's visual basic editors in every office 2000 applications) that opens the file (open file for input as #1), read every line (line input #1, $MyFile), and move it to a directory (shell "move " & $MyFile & " C:\MyDir"). If you have

2) Open Search for Files and Folders (Winkey-f). Search for your files. At the search results window, select all files, right-clickand cut. open explorer (winkey-e). Select destination folder, paste all files.

by r. a. caluste

the first answer is incomplete. I meant to say, if you have visual basic, you can compile the code as exe and put both the batch file and the exe file in a batch file. you can then run the batch file anytime.

This discussion is closed to new replies.