Sign in to follow this  
Followers 0
Priyankur

Please Help

15 posts in this topic

I am trying to automate flie transfer between a folder in my C: drive and a webfolder on by desktop. Can I do this with Autoit? I am a physician and I download voice dictation files to my computer from Olypus digital voice recorders at the end of a working day. Then I have to drag and drop the file to a webfolder for transcription. I was looking for a solution that is going to automate this process. Is it possible to do with the Autoit?

If yes where should I go to find out how to do it? I am an advanced PC user but by no means a application developer. :D

Share this post


Link to post
Share on other sites



I was able to use the file copy function to copy the desired file between two folders in my c drive. but i am not able to copy to the destination web folder. following is the script that i am running. do you have any idea what is the problem I am running into?

FileCopy("C:\my documents\message\FolderA\*.dss", "https://webdav.ibackup.com/users/fmc04/Files")

Share this post


Link to post
Share on other sites

if you can access the same folder through FTP I'd suggest doing it through a ftp command, with

runwait(@comspec & ' /c ftp c:\somefiles\*.* ftp://server.com/target')

or something like that... maybe with an answer file that has the user and password...


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

I do a very similar thing. Although it is better to use an ftp client, you can use explorer to do the same thing. First open both windows (c:\temp and https://webdav.ibackup.com/users/fmc04/Files.)

Now they each have names on thier windows, so you can activate them, and send keys to them. If possible, use controlsend. On windows explorer it is typically Internet Explorer_Server1 for the web section, and Edit1 for the location.

Send the first 5 or so characters of the filename, it will highlight the name, and then send control+c to copy, and winactivate the web side, and send a control+V for paste, or sometimes type a few characters of one of those filenames to make sure you get focus, and then do it.

Basically you should be able to do it with keystrokes, once you figure that out, writing a script will be a lot easier.

Again I would suggest using an ftp if possible.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

well i think i did as you suggested but nothing happened. Following is the code generated by the AutoSpy when I used the keys to do as you suggested:

WinWait("FolderB","")

If Not WinActive("FolderB","") Then WinActivate("FolderB","")

WinWaitActive("FolderB","")

Send("{CTRLDOWN}a{CTRLUP}{CTRLDOWN}c{CTRLUP}{ALTDOWN}{ALTUP}")

WinWait("Files on webdav.ibackup.com","")

If Not WinActive("Files on webdav.ibackup.com","") Then WinActivate("Files on webdav.ibackup.com","")

WinWaitActive("Files on webdav.ibackup.com","")

Send("{CTRLDOWN}v{CTRLUP}")

I had opened both the windows as suggested and then started the AutoSpy to capture the keys to create the script.

Share this post


Link to post
Share on other sites

guys it works! i had keep both the windows open!!

Is it possible to run the script with out the windows open or open and close them automatically?

Share this post


Link to post
Share on other sites

yes, use winclose("window name")

oh, and you can simplify this line

Send("{CTRLDOWN}a{CTRLUP}{CTRLDOWN}c{CTRLUP}{ALTDOWN}{ALTUP}")

Send("^a^c")

and same later on:

Send("^v")

you can try this to open your stuff:

run('C:\Program Files\Internet Explorer\IEXPLORE.EXE "https://webdav.ibackup.com/users/fmc04/Files"')
Run('explorer "c:\FolderB"'); change to your folder.

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

No man! winclose is for kids!

use winkill, the mans way to close a window. :D

Share this post


Link to post
Share on other sites

Winclose tries to close it the normal way, winkill is a bit more harsh. Using winkill all the time can leave you with some tray icon display refresh problems.

Of course that was most likely a joke. :D


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

No man! winclose is for kids!

use winkill, the mans way to close a window.  :huh2:

Yea right why push the Power button of your PC when you have sledge hammer.. :D Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Force that window. Show em who is boss

Share this post


Link to post
Share on other sites

Yea right why push the Power button of your PC when you have sledge hammer..  :D

what do you mean power button? I just pull the cord out of the back whenever I need to turn this thing off.

"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

I have a funnel on top of my PC and just add water to shut it off.

Laughing histerically...

Yea, I turn off my car by pissing on the spark plug wires myself.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

I like to shoot out the lightbulb with a handgun... just to make sure :D

Share this post


Link to post
Share on other sites

It is amazing to see what this group of nerds can do for laughs!! it is very refreshing!!!!

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