Hallo zusammen,
ich bin jetzt selbst fündig geworden und habe ein Autohotkey Skript von capilario angepasst. Siehe hier: http://de.autohotkey.com/forum/topic1160.html
Hier das vollständige Skript.
Zur Ausführung wir Autohotkey benötigt:
http://de.autohotkey.com/
----------------------- snipp ------------------------------------
; Kopiert ein Verzeichnis und ersetzt Shortcuts (*.LNK) durch Original-Dateien
;________________________________
; \
;Konfiguration: |
Recurse_Subfolders = 1
Move_Files = 0
Delete_Shortcuts = 1
DoOverwrite = 1
;Ende der Konfiguration |
;________________________________/
;
FileSelectFolder, Source_Dir, , 0, Von wo sollen die Dateien kopiert werden?
FileSelectFolder, Destination_Dir, , 0, Bitte das Zielverzeichnis auswählen
FileCopyDir, %Source_Dir%, %Destination_Dir% , 1
Loop, %Destination_Dir%*.lnk, 0, %Recurse_Subfolders%
{
FileGetShortCut, %A_LoopFileFullPath%, file
; MsgBox file %file%
If %Move_Files%
FileMove, %file%, %A_LoopFileDir%
else
FileGetAttrib, Attributes, %file%
IfInString, Attributes, D
{
SplitPath, file , OutFileName
;FileCreateDir, %A_LoopFileDir%%OutFileName%
FileCopyDir, %file%, %A_LoopFileDir%%OutFileName%, %DoOverwrite%
OutFileName = „“
}
else
FileCopy, %file%, %A_LoopFileDir%
if %Delete_Shortcuts%
FileDelete, %A_LoopFileFullPath%
}
MsgBox, fertig
return
---------------------- snipp ----------------------------
Gruß Lino