Jump to content

Recommended Posts

Posted

I've tried using FileMove ( <filename.png>, <filename> ) ... but it always returns 0 and the file isn't moved. I suppose the central question is: can AutoIt3 write a file that doesn't have a file extension as part of the name?

Does anyone happen to know? I haven't been able to find a similar example.

Thanks for any help.

Posted (edited)

Filemove works well, it can move or rename file with or without extension,

like this :

$_FileMove = FileMove ( "C:\filename.png", "D:\filename" )
ConsoleWrite ( "$_FileMove : " & $_FileMove & @Crlf )

It return 1 and file moved have no extension.

If it doesn't work , see if destination exists ( flag 8 ), if characters are allowed, if there is some attributes that prevents the overwriting ( flag 1 ).

Show your filemove tries...

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Posted

Well, FileMove and FileCopy both work. It was me. I was using a calculated path based on the results of a _FileListToArray operation ... and the calc didn't include the final "\" before the filename.

Thanks for your reply.

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
  • Recently Browsing   0 members

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