Sign in to follow this  
Followers 0
saiyan

unable to run files

9 posts in this topic

HI guys,

i am new to autoit that prolly why i look for answers here :mellow: i have readed the help files but cant find a solution.

i need run each day 2 scripts from avaya software. this scripts run in background and creating reports from their database and have extension ".acsauto" and here is mine issue :) i can run then wth Run() , even windows task manager gives me an errorthat this is a non wndows program ... but i can normaly run them with double click...

do someone have a solution ?

thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi and Welcome to the forums!

Don't another app open the files when you double-click them? You know, like when you double-click a txt file and runs Notepad, not the txt, You doesn't want Run(), you want ShellExecute().

Edited by AdmiralAlkex

Share this post


Link to post
Share on other sites

hi,

it not opens any programs it is a script to bypass the main program and grab the data from DB directly without that i need to log , make a query etc.

normal in windows i can just double click and it runs in background.

i try still in VBA this:

ActiveWorkbook.FollowHyperlink "C:\Users\***\Desktop\call data\Export Data Bra data.acsauto", NewWindow:=True

this works but i get a error window with "some files can harm your computer" ..

Share this post


Link to post
Share on other sites

Hi,.

can you provide a party of your code that execute your avaya tools?

excuse my English, I am French,

JeanPhile

Share this post


Link to post
Share on other sites

saiyan, right click on the shortcut link that you run and go to properties. Tell us what the "Target" and the "Start In" values are. Be exact, including the quotes. That would help us a lot in helping you.


#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

type of file: Avaya Supervisor Automatic Script (.acsauto)

Opens with: Script.exe -- cant find that in any directory .. only found ACscript with even the same icon

Share this post


Link to post
Share on other sites

hi this i mine VBA that works now :

Sub Avaya_report_Bra()

Shell ("C:\Program Files\Avaya\CMS Supervisor R16\ACScript.exe C:\Users\****\Desktop\call data\Export Data Bra data.acsauto /AUTO")

Exit Sub

End Sub

this is executing all not ut i would like to have it in auto it and i tried shellexecute() but not working ...

Share this post


Link to post
Share on other sites

I just want to make sure you are coding the ShellExecute statement correctly. I think this is how it should be:

ShellExecute("C:\Program Files\Avaya\CMS Supervisor R16\ACScript.exe", '"' & "C:\Users\****\Desktop\call data\Export Data Bra data.acsauto /AUTO" & '"')

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

Sleepydvdr thank you :mellow: it works now i think i messed up this ' "" ' dammit ...

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