saiyan Posted September 3, 2011 Share Posted September 3, 2011 HI guys, i am new to autoit that prolly why i look for answers here 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 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 3, 2011 Share Posted September 3, 2011 (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 September 3, 2011 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
saiyan Posted September 3, 2011 Author Share Posted September 3, 2011 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" .. Link to comment Share on other sites More sharing options...
JiBe Posted September 3, 2011 Share Posted September 3, 2011 Hi,. can you provide a party of your code that execute your avaya tools? excuse my English, I am French, JeanPhile Link to comment Share on other sites More sharing options...
sleepydvdr Posted September 3, 2011 Share Posted September 3, 2011 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> Link to comment Share on other sites More sharing options...
saiyan Posted September 3, 2011 Author Share Posted September 3, 2011 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 Link to comment Share on other sites More sharing options...
saiyan Posted September 5, 2011 Author Share Posted September 5, 2011 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 ... Link to comment Share on other sites More sharing options...
sleepydvdr Posted September 6, 2011 Share Posted September 6, 2011 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" & '"') samibb 1 #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
saiyan Posted September 7, 2011 Author Share Posted September 7, 2011 Sleepydvdr thank you it works now i think i messed up this ' "" ' dammit ... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now