This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ' TO RUN THIS SCRIPT: | |
| ' 1. Open cmd as admin | |
| ' 2. Run the command: cscript WindowsSpotlight.vbs | |
| ' Edit: | |
| mySpotlightFolder = "D:\Pictures\Windows Spotlight" ' THIS IS THE FOLDER IN WHICH THE JPG IMAGES WILL BE SAVED | |
| '''''''''''''''''''''''''''''''''''''''''''''''''''''''' | |
| set fs = CreateObject("Scripting.FileSystemObject") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| import java.io.IOException; | |
| public class OptimalPageReplacement | |
| { | |
| public static void main(String[] args) throws IOException | |
| { | |
| Scanner in = new Scanner(System.in); | |
| int frames = 0; | |
| int pointer = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.Scanner; | |
| public class LRUPageReplacement | |
| { | |
| public static void main(String[] args) throws IOException | |
| { | |
| Scanner in = new Scanner(System.in); | |
| int frames = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.*; | |
| import java.util.*; | |
| public class SimpleShell { | |
| public static void main(String[] args) throws java.io.IOException | |
| { | |
| String commandLine; | |
| String delims = "[]+"; | |
| ArrayList<String> history = new ArrayList<String>(); | |
| BufferedReader console = new BufferedReader(new InputStreamReader(System.in)); |