Discussion Locked
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
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.
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.
Trending Windows Forum posts
Sort by Trending
Question Locked
Do You Save Useful Windows Tutorial Videos for Later
0 helpful
7 replies
0 helpful
1 reply
0 helpful
10 replies
Question Unanswered
Is WSL still relevant in 2026?
0 helpful
0 replies
0 helpful
2 replies