Geoffl Posted December 13, 2017 Posted December 13, 2017 Hi, This is probably a pretty dumb question but I need to stop my script in a batch file. In the screen shot my script is running and I can stop it by clicking EXIT. What is the command and can I use it in a batch file? Regards Geoffl
water Posted December 13, 2017 Posted December 13, 2017 You could set a key combination to exit your script. Please check the help file for HotKeySet. Earthshine 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
careca Posted December 13, 2017 Posted December 13, 2017 What you could do is translate the batch to autoit, and then you would be able to stop it. Im not aware of any way you can stop a batch file unless by stopping it's process. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Geoffl Posted December 13, 2017 Author Posted December 13, 2017 Thank you for your help. I do not want to stop the batch file I want to stop Autoit. In my screen shot , if I click EXIT, Autoit stops. This must be a command in Auotit.
Moderators JLogan3o13 Posted December 14, 2017 Moderators Posted December 14, 2017 This belongs on a batch forum then, not an AutoIt forum. In short, Google would have given you your answer: http://tweaks.com/windows/39559/kill-processes-from-command-prompt/ "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
careca Posted December 14, 2017 Posted December 14, 2017 (edited) Your mentioning of a batch file confused things a bit 16 hours ago, Geoffl said: What is the command and can I use it in a batch file? So that made me think you in fact want to stop a batch file.. of course autoit commands wont work in batch files. As for stopping the script, you can use a "hotkeyset" and direct to a function that exits the script, but there more ways of doing the same. Edited December 14, 2017 by careca Geoffl 1 Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Geoffl Posted December 14, 2017 Author Posted December 14, 2017 Thank you for your help. Regards Geoffl
careca Posted December 14, 2017 Posted December 14, 2017 Np. but Is it solved? If you have trouble post here what you tried. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
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