Jump to content
taly88

CMD - How to go url then wait to save-as dialog and then gives file name and save ?

Recommended Posts

taly88

Hello   nice   friends,

im   try   alot   of   things   but   any   thing   not   work...

 

  i   need   bat   file   (cmd)

for   go   some   URL   ,       Then wait to save-as dialog show and then gives file name with "xXx -[current-time].csv" the - save it.

 

please   help   me

thank-you-very-much!

Taly.

 

Share this post


Link to post
Share on other sites
BigDaddyO

Something like this.

 

But, you will need to use the AutoIT Window Info tool to figure out the Window and controls to enter

$iPID = ShellExecute("www.yahoo.com")

;Use AutoIT Window Info tool to get the Save-As file name input box
If WinWait("Save As", "", 90) Then
    ControlSetText("Save As", "", "FileNameEditBoXControlName", "xXx-" & @HOUR & @MIN & @SEC & @MSEC & ".csv")
    ControlClick("Save As", "", "OKbuttonName")
    
Else
    MsgBox(0, "Error", "The Save-As window did not appear within 90 seconds")
EndIf

 

  • Like 1

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.