This is done in PowerShell.
The Get-ChildItem cmdlet is very useful in obtaining files and directory information. Your challenge is to create a PowerShell function that displays all ‘.exe’ and ‘.dll’ files stored under C:\Windows\System32, whose size is more than 5 MB. Group the files based on their extension and store the list into a text file.
Below is the Powershell script which will perform the given task.
It will search the files with extension .exe and .dll in the directory C:\Windows\System32, which have a size greater than 5 MB. The result is then written back to a file.
Script-
Get-Childitem –Path C:\Windows\System32 -Include *.exe,
*.dll | Where-Object {$_.length -gt 5242880} | Out-File -FilePath
.\Process.txt
This is done in PowerShell. The Get-ChildItem cmdlet is very useful in obtaining files and directory...
do numbers 4-8
4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...
In this assignment, you will demonstrate your ability to write simple shell scripts. This is a cumulative assignment that will challenge you to pull together a variety of lessons from throughout the course. 2 The Assignment Every now and then, I find myself with a large number of files that have inappropriate extensions (the set of characters in the file name after the last :') that need to be changed. For example, a complicated C++ program, developed by someone on...
LAB 13 Please use correct division of code into .h and .cpp files and Comments in code explain what's being done. Thanks you very much for your help Create an STL vector of 10 integers and store initial values (0 to 9 is fine). Use the std::random_shuffle algorithm to shuffle the list. Print the list. (use an iterator in a regular for loop) Use the std::sort algorithm to sort the list. Print the list again. (use a range-based for loop)...
1. [30] Use the Msinfo32.exe command to launch the System Information window. Browse through the different levels of information in this window and answer the following questions:a. What OS and OS version are you using?b. What is your CPU speed?c. What is your BIOS manufacturer and version?d. How much video RAM is available to your video adapter card? Explain how you got this information.e. What is the name of the driver file that manages your network adapter? Your optical drive? 2. ...
i need help with this scripting assignment in power shell thanks
Lab 7: PowerShell Search and Report Search Report host path date Execution time nnn Directories n, nnn, nnn Files nnnnnnn Sym links nnnnnnn Old files nnnnnnn Large files nnnn, nnn Graphics files nnnnnnn Executable files nnnnnnn Temporary files n, nnn, nnn TotalFileSize nnnn, nnn Introduction Lab 7 is nearly identical to Lab 2, except it is written in PowerShell, uses no UNIX/Linux tools to do its work, creates no...
Homework 1- Merge Files: 1. Design a class named MergeFiles 1 Three file names are passed as command-line arguments to MergeFiles as follows: java MergeFiles filel file2 mergedFile II. MergeFiles reads names stored in files file and file2 III. Merges the two list of names into a single list IV. Sorts that single list V. Ignores repetitions VI. Writes the sorted, free-of-repetitions list to a new file named mergedFile.txt VII. The names in all three files are stored as one...
It is a C++ program by using
inheritance and vectors
My professor said that all the files should be separate. like
File.cpp, File.h, Text.cpp,Text.h,Main.cpp
I already have these files
File.cpp
#include "File.h"
// Constructor of File that takes File name and type as
arguments
File::File(string type, string name) {
this->type = type;
this->name = name;
}
//returns the type.
string File::getType() {
return type;
}
//returns the name of file.
string File::getName() {
return name;
}
File.h
#ifndef __FILE_H__
#define...
In notepad 4. Build a document containing the following: a. Place a heading at the top center of the document in all capital letters containing: MY BACKGROUND b. In a paragraph containing complete sentences of correctly spelled words, please describe the following about yourself: (1) Where you were born (city, state, country) (2) What brought you to Middlesex County College (3) What you are studying at Middlesex County College (4) What you like to do in your spare time when...
Question 2 0/1 point (graded) What happens when you remove a directory using the command rm -r? You cannot remove a directory using the rm command. You permanently remove the entire directory, including all files and subdirectories. You move the entire directory to a trash folder, but it can be restored later. You get a warning message asking if you want to proceed, then you delete the directory. incorrect Answer Incorrect: Try again. Unix does not warn you before permanently...