ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

REQUEST: Automated search and move tool

<< < (2/2)

KoenFugro:
Hey Skrommel,

I am trying to make the posiblity to create an output folder, where all the Tiffs are coming after search.
I made a Fileselectfolder, with an output var. When you browse and click a folder, the variabele is set, but nothing happens with the tiff's.

This is my script:

MsgBox, EBN PDF-TIFF zoek tool v1.0 Zet de exe in de root van de te sorteren map met PDF's!



localfolder=C:\PDFS                              ;EBN Weebverzending PDF
sanfolder1=c:\san1                          ;SAN Folder1
sanfolder2=c:\san2                          ;SAN Folder2


FileSelectFolder, OutputVar, , 3            ;Set variable for output folder
if OutputVar =         
    MsgBox, Selecteer eerst een map van EBN weekzending.
else
    MsgBox, Je hebt "%OutputVar%\" geselecteerd.                        



Loop,%localfolder%\*,1                        ;Zoekt door de weekverzending
{
  IfInString,A_LoopFileAttrib,D                ;Kijkt of er mappen zijn
  {
    MOVE(A_LoopFileName,sanfolder1,A_LoopFileFullPath)      ;Kijkt of diezelfde map bestaat in de sanfolder1
    MOVE(A_LoopFileName,sanfolder2,A_LoopFileFullPath)     ;Kijkt of diezelfde map bestaat in de sanfolder2
  }
}
ExitAPP


MOVE(find,root,target)
{
  Loop,%root%\*,1                           ;Zoekt door de root van de sanfolders
{
    IfInString,A_LoopFileAttrib,D   
    If (A_LoopFileName=find)                  ;Als er een match is...
    {
      FileMoveDir,%A_LoopFileFullPath%,%outputvar%%find%      ;Verplaats de map naar de lokale folder
      Break
    }
  }
}


FileMoveDir,%A_LoopFileFullPath%,%outputvar%%find%      ;If I change the %outputvar% to c:\output\ it works fine....

What am I doing wrong?  :tellme:
Koen

skrommel:
 :tellme: Maybe FileMoveDir,%A_LoopFileFullPath%,%outputvar%\%find%

Skrommel

KoenFugro:
That is not working...The Tiff's are still coming in the PDF folder.
Is there a simple way search not inly in the root of the sanfolders but also in the subfolders of the san folder?  : :tellme:

If the two above problerms are fixed then I can finally use the tool... that would be great! :D

Kind regards,
koen

Navigation

[0] Message Index

[*] Previous page

Go to full version