Sign in to follow this  
Followers 0
Autoxics

Check For A Specifc File And Replace Is It Possible?

4 posts in this topic

Hi people

search for a specific file on the drive - drive "c" for example, and check for a specific size of this file and its name, and if this specific file is found then Autoit will copy a file from where autoit is

into this files folder and overwrite this file,and display a message to user that the file was found and that it was succesfully overwritend,

but if the file whas not found then i would like it to give the user a possebillity to search the file manualy and doing this thrue a dialogbox window,ones found the user would then open the file and a messagebox telling him/her that the file was succesfuly overwritend,

would anyone know how a script like this in Autoit would look like?

any help is appriciated!

Share this post


Link to post
Share on other sites



First off, welcome to the forum.

Second, you need to do some leg work yourself. Read the help file, all you need to know is in there. After you have started wrtting the code, then post it and we can then help you out.

The general rule is you start doing the work, and we help when needed.

Gook luck :)


[font="Verdana"]People who say it cannot be done should not interrupt those who are doing it. - George Benard Shaw[/font]

Share this post


Link to post
Share on other sites

Look up the help file for:

FileFindFirstFile

FileFindNextFile

FileMove

FileCopy

FileGetSize

MsgBox

Or go to

http://www.autoitscript.com/forum/index.php?showtopic=21048

For AutoIt 1-2-3 (A great place to start) [Thanks Valuater!!!]

Download AutoIt 1-2-3 from here: http://www.autoitscript.com/forum/index.ph...pe=post&id=7195

#)

P.S.: @Valuater: Some people find you download links confusing, so can you put it in the first post instead of the second post???

Share this post


Link to post
Share on other sites

Hello and thank you all,

yes your right i should have provided some example code at first,

ive played around with Autoit and what a powerfull script language it seams to be,

the reason i wrote for help so quickly was really because i dident know where to start adding this code, the combination for it and sutge,

i gues the exitment of knowing if it was possible to do this kind of script brought forward the lazzyness in me,

but as i said your right about that,

and thanks for help sofar, il do some homework right away on this,

and il be back to get some additional help on what ive got at that point,

thank you both for help sofar!

Share this post


Link to post
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
Sign in to follow this  
Followers 0