Jump to content

FileMove doesn't work


Recommended Posts

Everyday I export data some data (sending some keystrokes) and then store them into a YYYY.MM.DD directory.

The sendkey works but FileMove doesn't whereas it just follows the send instruction.

Why (below the whole script):

#include<Date.au3>
Opt("WinTitleMatchMode", 2)      ;1=complete, 2=quick
$title = WinGetHandle("Data Export Utility")
If $title = 0 Then
    MsgBox(0,"Not Found", "The window title specified was not found!")
Else
    $date = @YEAR & "." & @MON & "." & @MDAY 
    WinActivate($title)
    WinWaitActive($title)
    Send("^x")
    WinWaitActive("Signal")
    Send("{ENTER}")
    
    FileMove("C:\export\files\*", "C:\export\files\" & $date & "\*",8)
    
EndIf
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...