Author: Hacker
Posted: Mon Sep 12, 2016 3:28 pm (GMT -6)
Ran,
Here is a short AutoHotkey script that checks the source dir every ten seconds for *.*, reads the 8th line, compares it to the given strings and moves accordingly. Fully customizable.
HTH
Roman
_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Posted: Mon Sep 12, 2016 3:28 pm (GMT -6)
Ran,
Here is a short AutoHotkey script that checks the source dir every ten seconds for *.*, reads the 8th line, compares it to the given strings and moves accordingly. Fully customizable.
Code: |
#Persistent #NoEnv CheckDir = C:\test CheckFilePattern = *.* CheckLineNumber = 8 PossibilitiesCount = 2 Text1 = <Warehouse>08</Warehouse> Text2 = <Warehouse>05</Warehouse> MoveToDir1 = C:\Warehouse8Files MoveToDir2 = C:\Warehouse5Files FileCheckInterval = 10000 ; ms SetWorkingDir, %CheckDir% SetTimer, CheckFiles, %FileCheckInterval% CheckFiles: Loop, Files, %CheckFilePattern% { FileReadLine, Line, %A_LoopFileName%, %CheckLineNumber% Loop, %PossibilitiesCount% IfEqual, Line, % Text%A_Index% { FileMove, %A_LoopFileName%, % MoveToDir%A_Index% Break } } Return |
HTH
Roman
_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.