Windows 10: IE - How to delete content with a batch/script file?

Discus and support IE - How to delete content with a batch/script file? in Windows 10 Software and Apps to solve the problem; I've looked all over and was wondering if I could get some help here. I work where there are public machines, and we tell people NOT to use Internet... Discussion in 'Windows 10 Software and Apps' started by JOSHSKORN, Nov 22, 2017.

  1. JOSHSKORN Win User

    IE - How to delete content with a batch/script file?


    I've looked all over and was wondering if I could get some help here. I work where there are public machines, and we tell people NOT to use Internet Explorer, BUT only 10% of people actually adhere to this. That's life.

    I've noticed that with IE, when the computer crashes, or when IE isn't shut down properly, that the user's information is still stored onto the browser. So, lets say someone logs into Yahoo! Mail, the machine crashes, they leave, we unknowingly bring the machine back up and the next user uses IE to use Yahoo, they can end up seeing the previous user's E-mail content.

    It's impossible to teach every user to do things like Uncheck the "Remember me" boxes on each site or any options alike, so I was hoping there'd be a way to write a batch file to delete all browsing content. In otherwords, essentially do the same thing as selecting the option from within IE to delete all content on exit, except with a batch script that runs when the computer logs in to Windows.

    We actually only have a couple of Windows 10 machines, but we mainly have Windows 7 and Windows 8.1 machines, since we don't have all of the proper licenses for every machine to be upgraded, as well as the Windows 10 server. I assume any scripts would be more or less identical.

    Any help would be appreciated. Thanks!

    :)
     
    JOSHSKORN, Nov 22, 2017
    #1
  2. ThreeTima Win User

    Batch Files?

    Ok... I would like to know if there is a way to creat batch files or a script to perform multiple commands.

    Examples would be:

    Something to delete specific file(s) (such as the contents of a cache directory or old log files) and then start a program.

    Please Help
     
    ThreeTima, Nov 22, 2017
    #2
  3. Andre Da Costa, Nov 22, 2017
    #3
  4. dalchina New Member
  5. lx07 Win User
    Alternatively you could make a log on (or log off) script using the commands from here Clear IE7 Browsing History From the Command Line

    The command RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351 deletes everything but there are separate ones for cookies, passwords etc in the link.

    It is for Vista but seems to work in 10 as well. Certainly deleting history worked - I didn't test the other commands as I didn't actually want to delete my passwords etc so you'd have to try it.

    If you prefer you can delete the actual files and registry entries as described here : How to delete cookies, cache and history in all major browsers The advantage (or disadvantage depending what you want) of this second method is that while it is more complicated you don't get a box with a progress bar popping up saying "deleting history" like this


    IE - How to delete content with a batch/script file? [​IMG]
     
    lx07, Apr 5, 2018
    #5
Thema:

IE - How to delete content with a batch/script file?

Loading...
  1. IE - How to delete content with a batch/script file? - Similar Threads - delete content batch

  2. Batch scripting

    in Windows 10 Software and Apps
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:Code and result:Code:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press...
  3. Batch scripting

    in Windows 10 Gaming
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:Code and result:Code:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press...
  4. Batch scripting

    in Windows 10 Network and Sharing
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press any key. echo Before...
  5. How to undo a batch script

    in Windows 10 Network and Sharing
    How to undo a batch script: I decided it would be a good idea to download and run a random batch script from the internet to get the ability to move files around freely, rather than sticking to the presets. Microsoft, if you see this, please allow us to move and organize files as we wish and not have to...
  6. Batch script to extract updates from WSUS content folder

    in Windows 10 Installation and Upgrade
    Batch script to extract updates from WSUS content folder: Hi Team, We are having WSUS 6.3 running on Windows Server 2012 R2 STD Edition, can someone please suggest applicable batch script to extract updates from WSUS content folder....
  7. Batch Scripts / Programs.

    in Windows 10 Performance & Maintenance
    Batch Scripts / Programs.: The members and quests who use this forum know how professional, informative and helpful it is! In order to help members solve their problems/issues we often ask them to run certain programs and perform certain tasks and then upload [ post ] the results to the forum for us...
  8. [Question] Delete files with denied access with batch scripts

    in Windows 10 Support
    [Question] Delete files with denied access with batch scripts: Ciao, dopo anni ho iniziato a lavorare con script batch di nuovo, ma non riesco a eliminare un file nella directory principale "C", (usando W10 ultima release), questo è lo script che mi d "accesso negato". [code] @echo off cls del "C: \ SYSTAG.BIN" / A / F / Q / S...
  9. Is it safe to delete every tmp / temp file with a batch script?

    in Windows 10 Network and Sharing
    Is it safe to delete every tmp / temp file with a batch script?: Hello everyone! I made a little script as follows: @echo off title deleting temp files del /s /q c:\*.tmp del /s /q c:\*.temp pause is it safe to run?...
  10. Running PowerShell script as a batch file

    in Windows 10 Network and Sharing
    Running PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***...