X
Tap here to go to the mobile version of the site.

Support Forum

This thread was closed and archived. Please ask a new question if you need help.

I have written a Windows DOS batch file that will close Firefox if it locks up on you

Posted

I tested the program and found no problem using it. Using your file explorer, go to a directory of your choosing.
(Not the desk top)
Create a new file and call it KillFirefox.bat or whatever you want. Note; this is a BAT file.
Open the file with a file editor, and copy everything below into it (after the ========= of course).
Save the file. Now, use the file explorer, right click the new program, and select
Create A Shortcut. Then move the shortcut to the desk top. Place it somewhere on the screen
so that if Firefox locks up, you can still reach the shortcut.


If you want more information about Taskkill, open a DOS window, and type Taskkill /?


WARNING ! ! ! You will loose anything that has not been saved.
==================================================================================

TASKKILL /T /F /IM Firefox.exe

exit

TASKKILL system [/U username [/P [password]]]
         { filter processid | /IM imagename } /T /F
Description:
    This tool is used to terminate tasks by process id (PID) or image name.
Parameter List:
    /S    system           Specifies the remote system to connect to.
    /U    [domain\]user    Specifies the user context under which the
                           command should execute.
    /P    [password]       Specifies the password for the given user
                           context. Prompts for input if omitted.
    /FI   filter           Applies a filter to select a set of tasks.
                           Allows "*" to be used. ex. imagename eq acme*
    /PID  processid        Specifies the PID of the process to be terminated.
                           Use TaskList to get the PID.
    /IM   imagename        Specifies the image name of the process
                           to be terminated. Wildcard '*' can be used
                           to specify all tasks or image names.
    /T                     Terminates the specified process and any
                           child processes which were started by it.
    /F                     Specifies to forcefully terminate the process(es).
    /?                     Displays this help message.
I tested the program and found no problem using it. Using your file explorer, go to a directory of your choosing.<br /> (Not the desk top)<br /> Create a new file and call it '''KillFirefox.bat''' or whatever you want. Note; this is a '''BAT''' file.<br /> Open the file with a file editor, and copy everything below into it (after the ========= of course).<br /> Save the file. Now, use the file explorer, right click the new program, and select<br /> '''Create A Shortcut'''. Then move the shortcut to the desk top. Place it somewhere on the screen<br /> so that if Firefox locks up, you can still reach the shortcut.<BR><BR><br /> If you want more information about Taskkill, open a DOS window, and type Taskkill /?<BR><BR><br /> '''WARNING ! ! !''' You will loose anything that has not been saved.<br /> <nowiki>==================================================================================</nowiki> <pre>TASKKILL /T /F /IM Firefox.exe exit TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/T] [/F] Description: This tool is used to terminate tasks by process id (PID) or image name. Parameter List: /S system Specifies the remote system to connect to. /U [domain\]user Specifies the user context under which the command should execute. /P [password] Specifies the password for the given user context. Prompts for input if omitted. /FI filter Applies a filter to select a set of tasks. Allows "*" to be used. ex. imagename eq acme* /PID processid Specifies the PID of the process to be terminated. Use TaskList to get the PID. /IM imagename Specifies the image name of the process to be terminated. Wildcard '*' can be used to specify all tasks or image names. /T Terminates the specified process and any child processes which were started by it. /F Specifies to forcefully terminate the process(es). /? Displays this help message.</pre>

Modified by cor-el

Additional System Details

Installed Plug-ins

  • Shockwave Flash 13.0 r0
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • RealPlayer Download Plugin
  • Adobe Shockwave for Director Netscape plug-in, version 12.1.1.151
  • Next Generation Java Plug-in 10.55.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Google Update
  • NPWLPG
  • Unity Player 4.3.5f1
  • 5.1.30214.0
  • VLC media player Web Plugin 2.1.3
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.06
  • GEPlugin
  • Nokia Suite Enabler Plugin
  • The Hulu Desktop Plugin allows Hulu.com to integrate with the Hulu Desktop application.
  • The plug-in allows you to open and edit files using Microsoft Office applications

Application

  • Firefox 29.0
  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
  • Support URL: https://support.mozilla.org/1/firefox/29.0/WINNT/en-US/

Extensions

  • Abduction! 3.5.0 ({b0e1b4a6-2c6f-4e99-94f2-8e625d7ae255})
  • About Add-ons 0.6.20110718 ({DF3074AA-1298-95DF-4315-72E3C22B503C})
  • About support button 0.0.2 (aboutsupportbutton@firefox)
  • about:addons Launcher 1.1 (aboutaddons@about-addons-launcher.org)
  • about:me 0.7 (aboutme@test.mozilla.com)
  • AboutPlug 1.5 ({C49B68AC-0D21-40A7-9EE0-77D822273103})
  • Adblock Plus 2.5.1 ({d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d})
  • Adblock Plus Pop-up Addon 0.9.1 (adblockpopups@jessehakanen.net)
  • Add to Search Bar 2.2 (add-to-searchbox@maltekraus.de)
  • Add-on Compatibility Reporter 2.0.3 (compatibility@addons.mozilla.org)
  • Add-ons Manager Context Menu 0.4.2 (amcontextmenu@loucypher)
  • Addons Manager Hilite 2.1 (addonsmgrhilte@cfl)
  • Advanced bookmaks Add-on 1.0.6 (jid0-J7FCuOrjy4Iuh7hvdrQhQxLKiP0@jetpack)
  • Alert the Developer 1.0.1 (alert@doesthings.com)
  • Auto Shutdown NG 0.9.16 (jid0-HZ5UvAEiWWAxT9TKLuhEgUCARqo@jetpack)
  • Autofill 3.6 (firefox-autofill@googlegroups.com)
  • Automatic Save Folder 1.0.4 (asf@mangaheart.org)
  • Awesome Facts 1.35.1 (dracken-solutions-awesome-facts@jetpack)
  • Back to Top 7.0 ({3C9A65A6-9563-4485-BA4A-4BCD698BCFB4})
  • Block site 1.1.8 ({dd3d7613-0246-469d-bc65-2a3cc1668adc})
  • Caret Out 1.1 (caret-out@blogram.net)
  • Case Changer 2.0.0.18 (casechanger@plugin)
  • Classic Theme Restorer 1.1.8 (ClassicThemeRestorer@ArisT2Noia4dev)
  • Cleanest Addon Manager 7.0 (cam@sdrocking.com)
  • Close Tab By Double Click 1.14 (close@doubleclick)
  • Config Descriptions 1.0 ({1823e248-6bf4-f6f1-7901-65a68e8b6c1e})
  • Context Search 0.6.3 ({902D2C4A-457A-4EF9-AD43-7014562929FF})
  • Customizable Shortcuts 0.6.2 (customizable-shortcuts@timtaubert.de)
  • deskCut 0.6.0.3 ({9125C9CB-BE2B-4389-A0C7-46A4BDD46AEA})
  • Dictionary Extension 3.0.12.1 (jid0-raWjElI57dRa4jx9CCiYm5qZUQU@jetpack)
  • disallow Script Button 0.2.1 (disallowscriptbtn@code.google.com)
  • dlTracker 1.0 ({8f194e42-1d89-4395-b867-2275787b4ec3})
  • Download Status Bar 8.9.5 ({6c28e999-e900-4635-a39d-b1ec90ba0c0f})
  • Download videos and MP3s from YouTube 4.5.3.1206 ({B64D9B05-48E1-4CEB-BF58-E0643994E900})
  • DownloadHelper 4.9.22 ({b9db16a4-6edc-47ec-a1f4-b86292ed211d})
  • Element Hiding Helper for Adblock Plus 1.2.3 (elemhidehelper@adblockplus.org)
  • Empty Cache Button 2.5 ({4cc4a13b-94a6-7568-370d-5f9de54a9c7f})
  • ErrorZilla Plus 1.2.3 ({03651b2d-eb7d-4be7-af1b-dc0cd162dd54})
  • Expire history by days 1.1 (expire-history-by-days@bonardo.net)
  • Fast Translation 1.10.2 (fasttrans@kemot)
  • FEBE 8.0beta4 ({4BBDD651-70CF-4821-84F8-2B918CF89CA3})
  • FindBar Tweak 1.4.18 (fbt@quicksaver)
  • Flash Video Downloader - Full HD Download 5.8.3 (artur.dubovoy@gmail.com)
  • Flashblock 1.5.17 ({3d7eb24f-2740-49df-8937-200b1cc08f8a})
  • Gesture Translate 0.5.9 (gesture-translate@pablocantero.com)
  • Hide Plugin Notifications 0.2 (suppress-plugin-infobar@benjamin.smedbergs.us)
  • Hotmail Watcher 2.14 (hotmailwatcher@sonthakit)
  • Image Preview 0.0.7 ({D0A81AC1-3B12-4cec-AA8D-40EBDC4241EA})
  • Input autofocus 0.2 (jid1-PNR7CaAxKINHVA@jetpack)
  • KillSpinners 1.1.1 (killspinners@byo.co.il)
  • Lightbeam 1.0.9 (jid1-F9UJ2thwoAm5gQ@jetpack)
  • Link Toggler 0.3 ({CFC31648-F870-11DF-80F3-9B4EDFD72085})
  • MClickFocusTab 20.0.20130401 (mclickfocustab@moztw.org)
  • More About 1.0.0 (MoreAbout@schuzak.jp)
  • Multirow Bookmarks Toolbar Plus 1.2 ({4c7097f7-08f2-4ef2-9b9f-f95fa4cbb064})
  • NewScrollbars (aka NoiaScrollbars) 1.2.1 (NoiaScrollbars@ArisT2_Noia4dev)
  • No Sleep Download 2.0 (nosleepdl@august8.net)
  • NoSquint 2.1.9 (nosquint@urandom.ca)
  • Online Convert 1.4 (firefox@online-convert.com)
  • Open about:permissons 1.2 (open.about.permissions@jasnapaka.com)
  • OPIE 4.2 (OPIE@guid.customsoftwareconsult.com)
  • Places Maintenance 1.3 (places-maintenance@bonardo.net)
  • ProgressMeter 1.2 (progress-meter@bgoluboff.org)
  • Quick Options 0.1a5 (quick-options@loucypher)
  • Quick Translator 1.0 ({5C655500-E712-41e7-9349-CE462F844B19})
  • Re-Pagination 2013.03.18 ({6072cb90-a0bd-11da-a746-0800200c9a66})
  • Remember Passwords 1.1 (remember-passwords@stanimir-stamenkov.addons.mozilla.org)
  • Restartless Restart 9 (restartless.restart@erikvold.com)
  • Rights To Close 1.0.4 (shan.developer@gmail.com)
  • RightToClick 2.9.5 ({cd617375-6743-4ee8-bac4-fbf10f35729e})
  • Saved Password Editor 2.7.2 (savedpasswordeditor@daniel.dawson)
  • Searchbar Autosizer 2.1.0 ({655397ca-4766-496b-b7a8-3a5b176ee4c2})
  • SearchThisSite 0.37 ({c71ff04d-f001-1fc1-1fc1-c71ff04df002})
  • Send Tab URLs 2.1 ({4aebcd37-f454-4928-9233-174a026ed367})
  • Space Next 0.33 ({c71ff04d-f001-1fc1-1fc1-c71ff04df005})
  • SuperStop 0.1 (superstop@gavinsharp.com)
  • Text to Voice 1.10 (text2voice@vik.josh)
  • Thumbnail Zoom Plus 2.7 (thumbnailZoom@dadler.github.com)
  • Troubleshooter 1.1a (troubleshooter@mozilla.org)
  • Update Scanner 3.1.13 ({c07d1a49-9894-49ff-a594-38960ede8fb9})
  • Uppity 1.5.8 ({16cbd87c-eb99-4f5c-9825-83cf13ab7ff8})
  • Vertical Toolbar 1.0.7 (verticaltoolbar@xuldev.org)
  • ViewAbout 2.0.1 (viewabout@rumblingedge.com)
  • Youtube Subscriptions Grid 1.9 (jid1-PmCaAQKMFABjHg@jetpack)
  • ZZGif 1.0.rev163 (jid0-AsEtBwC86O2aYN7hqMefrquv9ls@jetpack)
  • Addon Manager Fix 2.2 (addonmanagerfix@sonco.com) (Inactive)
  • Bookmarks Checker - check for bad links 2.3.1 (firefoxbookmarkchecker@everhelper.me) (Inactive)
  • CCK2 Wizard 1.0.3 (cck2wizard@kaply.com) (Inactive)
  • Clean Links 2.4.6.1 ({158d7cb3-7039-4a75-8e0b-3bd0a464edd2}) (Inactive)
  • CLEO 5.0.1 (CLEO@guid.customsoftwareconsult.com) (Inactive)
  • EPUBReader 1.4.2.4 ({5384767E-00D9-40E9-B72F-9CC39D655D6F}) (Inactive)
  • Extension Options Menu 2.8 ({1feca320-6b4d-11df-a08a-0800200c9a66}) (Inactive)
  • External Application Buttons 2 0.11 (externalappbutton@teo.pl) (Inactive)
  • Forecastfox 2.2.2 ({0538E3E3-7E9B-4d49-8831-A227C80A7AD3}) (Inactive)
  • gui:config 1.2.2 (guiconfig@slosd.net) (Inactive)
  • Hide Add-on-Bar-Close-Button 0.3.0 (hide-add-on-bar-close-button@mauricioid.com) (Inactive)
  • My Map 0.2.4 (mymap@mymap.fr) (Inactive)
  • None-button 1.0 (yy20040101@yahoo.com.hk) (Inactive)
  • Redirect Bypasser 1.7 (redirectbypasser@moonlight21.com) (Inactive)
  • Show Location 0.7.2 ({10228D1E-6D25-4ccc-903E-272D66EEC763}) (Inactive)
  • StatusbarEx 0.3.5 (doudehou@gmail.com) (Inactive)
  • Subtitle Matcher 0.3.4 (subtitlematcher@mozilla.doslash.org) (Inactive)
  • Tabs Always In Titlebar 1.2 (TabsAlwaysInTitlebar@SoapyBrew) (Inactive)
  • The Addon Bar (restored) 3.1 (the-addon-bar@GeekInTraining-GiT) (Inactive)
  • TinyURL Generator 2.6.1 (tinyurl.addon@fast-chat.co.uk) (Inactive)
  • Toolbar Autohide 6.5.10 (fullscreentoolbarhover@com.sppad) (Inactive)
  • Webutation 2.0.8 ({15fe27f3-e5ab-2d59-4c5c-dadc7945bdbd}) (Inactive)
  • X-notifier 3.3.16 ({37fa1426-b82d-11db-8314-0800200c9a66}) (Inactive)
  • YouTube Caption Downloader 2.3 (captiondownloader@hiephm.com) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: Intel(R) HD Graphics 4000
  • adapterDescription2:
  • adapterDeviceID: 0x0166
  • adapterDeviceID2:
  • adapterDrivers: igdumd64 igd10umd64 igd10umd64 igdumd32 igd10umd32 igd10umd32
  • adapterDrivers2:
  • adapterRAM: Unknown
  • adapterRAM2:
  • adapterVendorID: 0x8086
  • adapterVendorID2:
  • clearTypeParameters: Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50
  • direct2DEnabled: False
  • direct2DEnabledMessage: [u'']
  • directWriteEnabled: False
  • directWriteVersion: 6.2.9200.16571
  • driverDate: 3-26-2012
  • driverDate2:
  • driverVersion: 8.15.10.2712
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'skia', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'cairo', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'']
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (Intel(R) HD Graphics 4000 Direct3D9Ex vs_3_0 ps_3_0)
  • windowLayerManagerRemote: False
  • windowLayerManagerType: Basic

Modified Preferences

  • accessibility.typeaheadfind.flashBar: 0
  • browser.cache.disk.capacity: 358400
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size.use_old_max: False
  • browser.cache.disk.smart_size_cached_value: 358400
  • browser.link.open_newwindow: 2
  • browser.newtab.url: about:home
  • browser.places.smartBookmarksVersion: 6
  • browser.search.openintab: True
  • browser.search.useDBForOrder: True
  • browser.sessionstore.upgradeBackup.latestBuildID: 20140421221237
  • browser.startup.homepage_override.buildID: 20140421221237
  • browser.startup.homepage_override.mstone: 29.0
  • browser.tabs.loadInBackground: False
  • browser.tabs.tabClipWidth: 1
  • browser.urlbar.doubleClickSelectsAll: True
  • browser.zoom.siteSpecific: False
  • dom.disable_window_move_resize: True
  • dom.disable_window_open_feature.close: True
  • dom.disable_window_open_feature.menubar: True
  • dom.disable_window_open_feature.minimizable: True
  • dom.disable_window_open_feature.personalbar: True
  • dom.disable_window_open_feature.scrollbars: True
  • dom.disable_window_open_feature.titlebar: True
  • dom.disable_window_open_feature.toolbar: True
  • dom.mozApps.used: True
  • extensions.checkCompatibility: True
  • extensions.lastAppVersion: 29.0
  • gfx.direct2d.disabled: True
  • gfx.direct3d.last_used_feature_level_idx: 0
  • layers.acceleration.disabled: True
  • mousewheel.withcontrolkey.action: 3
  • network.cookie.prefsMigrated: True
  • places.database.lastMaintenance: 1398893537
  • places.history.expiration.transient_current_max_pages: 104858
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • plugin.importedState: True
  • privacy.clearOnShutdown.cookies: False
  • privacy.clearOnShutdown.downloads: False
  • privacy.clearOnShutdown.formdata: False
  • privacy.clearOnShutdown.history: False
  • privacy.clearOnShutdown.sessions: False
  • privacy.cpd.extensions-nosquint: False
  • privacy.sanitize.migrateFx3Prefs: True
  • privacy.sanitize.sanitizeOnShutdown: True
  • storage.vacuum.last.index: 1
  • storage.vacuum.last.places.sqlite: 1398095727

Misc

  • User JS: No
  • Accessibility: No
John99 971 solutions 13138 answers

There are other methods of killing Firefox and the keyboard shortcut Alt+F4 may come in handy as that quits a program in Windows. (& Linux or Cmd +W in a Mac )

I am not sure that Firefox locking up will be a very common issue, but if it is then that needs investigating.

There are other methods of killing Firefox and the keyboard shortcut Alt+F4 may come in handy as that quits a program in Windows. (& Linux or Cmd +W in a Mac ) * http://support.microsoft.com/kb/126449 I am not sure that Firefox locking up will be a very common issue, but if it is then that needs investigating.
Compumind 4 solutions 74 answers

@FredMcD -

Is there any way to suppress the command window from opening?

TIA :)

@FredMcD - Is there any way to suppress the command window from opening? TIA :)
Tyler Downer
  • Top 25 Contributor
  • Moderator
1529 solutions 10658 answers

Why is this in the forum?

Why is this in the forum?
Moses
  • Moderator
459 solutions 3607 answers

Moderators: see /forums/forum-moderators/710284

Perhaps this can be useful(?)

'''Moderators: see [/forums/forum-moderators/710284]''' Perhaps this can be useful(?)