naru Posted September 21, 2017 Share Posted September 21, 2017 When i start my application's shortcut (.lnk) using autoit script, CMD Does not close automaticaly. my code is Run(@ComSpec & " /c " & "C:\myapp.lnk") Link to comment Share on other sites More sharing options...
spudw2k Posted September 21, 2017 Share Posted September 21, 2017 You could use ShellExecute instead of Run and avoid opening a CMD prompt all together. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
naru Posted September 21, 2017 Author Share Posted September 21, 2017 20 minutes ago, spudw2k said: You could use ShellExecute instead of Run and avoid opening a CMD prompt all together. Code ?? Link to comment Share on other sites More sharing options...
spudw2k Posted September 21, 2017 Share Posted September 21, 2017 Look at the example in your help file, or click the link to view the online help article. ShellExecute Let us know what you need help with after reading it, Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
badcoder123 Posted October 2, 2017 Share Posted October 2, 2017 You could also include Process.au3 then have a _RunDos("<command>") there Link to comment Share on other sites More sharing options...
aleph01 Posted October 2, 2017 Share Posted October 2, 2017 (edited) Alternately, Run(@ComSpec & " /c " & "C:\myapp.lnk") Send ("exit {ENTER}") perhaps? Edited October 2, 2017 by aleph01 correction Meds. They're not just for breakfast anymore. Link to comment Share on other sites More sharing options...
badcoder123 Posted October 4, 2017 Share Posted October 4, 2017 You could also do #include <Process.au3> _RunDos("C:\myapp.lnk") 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