Tigerweld Posted December 27, 2007 Share Posted December 27, 2007 noob here, ShellExecuteWait ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) I need to run an exe with a "-s" switch. Will that go in the parameters section or should I add it to the filename? Thanks! Link to comment Share on other sites More sharing options...
martin Posted December 27, 2007 Share Posted December 27, 2007 noob here, ShellExecuteWait ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) I need to run an exe with a "-s" switch. Will that go in the parameters section or should I add it to the filename? Thanks! Welcome to the forums It's a parameter so it goes in the parameters list. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Tigerweld Posted December 27, 2007 Author Share Posted December 27, 2007 I'm getting this error when I compile it. Can you tell me what I'm doing wrong? C:\Documents and Settings\tscott\My Documents\auto it scripts\Build Thin Client.au3(12,57) : ERROR: shellexecutewait(): undefined function. shellexecutewait("RemoveCitrixClient.exe", "-s", "y:",,,) Link to comment Share on other sites More sharing options...
Tigerweld Posted December 27, 2007 Author Share Posted December 27, 2007 JESUS! I finally figured it out. Not suppose to be a , at the end of parameters. Should be shellexecutewait("RemoveCitrixClient.exe" , "-s" , "y:" ) not shellexecutewait("RemoveCitrixClient.exe" , "-s" , "y:" , ) Is baldness normal in this trade??? Link to comment Share on other sites More sharing options...
Developers Jos Posted December 27, 2007 Developers Share Posted December 27, 2007 Is baldness normal in this trade??? Not that I know but gray hair is SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
SpookMeister Posted December 27, 2007 Share Posted December 27, 2007 If you are an investor you might consider investing in an antacid company [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote] Link to comment Share on other sites More sharing options...
DW1 Posted December 27, 2007 Share Posted December 27, 2007 Rolaids always did the trick for me AutoIt3 Online Help 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