Jump to content

Filemove criteria


Recommended Posts

I am trying to create a script that will go and copy files from one place to another, but I only want it to copy the current days files and not all the other files also. Does anyone have any suggestions or maybe someone can point me in the right direction..

Thanks,

Jazs

Noob

Link to comment
Share on other sites

That didn't work... It keeps giving me a prase error. Here is what I am using

$Time = FileGetTime("M:\DailyReports", 1)
If $Time[2] = @MDAY Then FileMove(c:\My Transfers\Fics\New Folder1\*.*)
Link to comment
Share on other sites

That didn't work... It keeps giving me a prase error. Here is what I am using

$Time = FileGetTime("M:\DailyReports", 1)
If $Time[2] = @MDAY Then FileMove(c:\My Transfers\Fics\New Folder1\*.*)
c:\My Transfers\Fics\New Folder1\*.* should be encased within quotes :D

$Time = FileGetTime("M:\DailyReports", 1)
If $Time[2] = @MDAY Then FileMove("c:\My Transfers\Fics\New Folder1\*.*")
Link to comment
Share on other sites

  • 2 weeks later...

I still can't get this to work. I even changed the $Time to $array and when it runs I still don't see the files moving

Filemove needs a Source and a Destination, That i don't see. Helpfile says: FileMove ( "source", "dest" [, flag] )

Hope this will work

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...