Skip to main content

Scripts for Files & Folders

About 39 minPowershellpowershellwindowsscriptuseful-script

Scripts for Files & Folders 관련


cd-autostart.ps1

cd-autostart.ps1

Set the working directory to the user's autostart folder.

This PowerShell script changes the working directory to the user's autostart folder.

Parameters
PS> ./cd-autostart.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-desktop.ps1

cd-desktop.ps1

Set the working directory to the user's desktop folder.

This PowerShell script changes the working directory to the user's desktop folder.

Parameters
PS> ./cd-desktop.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-docs.ps1

cd-docs.ps1

Set the working directory to the user's documents folder.

This PowerShell script changes the working directory to the documents folder.

Parameters
PS> ./cd-docs.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-downloads.ps1

cd-downloads.ps1

Set the working directory to the user's downloads folder.

This PowerShell script changes the working directory to the user's downloads folder.

Parameters
PS> ./cd-downloads.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-dropbox.ps1

cd-dropbox.ps1

Set the working directory to the user's Dropbox folder.

This PowerShell script changes the working directory to the user's Dropbox folder.

Parameters
PS> ./cd-dropbox.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-home.ps1

cd-home.ps1

Set the working directory to the user's home folder.

This PowerShell script changes the working directory to the user's home directory.

Parameters
PS> ./cd-home.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-music.ps1

cd-music.ps1

Set the working directory to the user's music folder.

This PowerShell script changes the working directory to the user's music folder.

Parameters
PS> ./cd-music.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-onedrive.ps1

cd-onedrive.ps1

Set the working directory to the user's OneDrive folder.

This PowerShell script changes the working directory to the user's OneDrive folder.

Parameters
PS> ./cd-onedrive.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-pics.ps1

cd-pics.ps1

Set the working directory to the user's pictures folder.

This PowerShell script changes the working directory to the user's pictures folder.

Parameters
PS> ./cd-pics.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-recycle-bin.ps1

cd-recycle-bin.ps1

Set the working directory to the user's recycle bin folder.
Parameters
PS> ./cd-recycle-bin.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-repos.ps1

cd-repos.ps1

Change the working directory to the user's Git repositories folder.

This PowerShell script changes the working directory to the user's Git repositories folder.

Parameters
PS> ./cd-repos.ps1 [[-Subpath] <String>] [<CommonParameters>]

-Subpath <String>
    Specifies an additional relative subpath (optional)
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-root.ps1

cd-root.ps1

Set the working directory to the root directory.

This PowerShell script changes the current working directory to the root directory (C:\ on Windows).

Parameters
PS> ./cd-root.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-scripts.ps1

cd-scripts.ps1

Set the working directory to the PowerShell Scripts folder.

This PowerShell script changes the working directory to the PowerShell scripts folder.

Parameters
PS> ./cd-scripts.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-ssh.ps1

cd-ssh.ps1

Set the working directory to the user's SSH folder.

This PowerShell script changes the working directory to the user's SSH folder.

Parameters
PS> ./cd-ssh.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-up.ps1

cd-up.ps1

Set the working directory to one directory level up.

This PowerShell script changes the working directory to one directory level up.

Parameters
PS> ./cd-up.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-up2.ps1

cd-up2.ps1

Set the working directory to two directory levels up.

This PowerShell script changes the working directory to two directory level up.

Parameters
PS> ./cd-up2.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-up3.ps1

cd-up3.ps1

Set the working directory to three directory levels up.

This PowerShell script changes the working directory to three directory levels up.

Parameters
PS> ./cd-up3.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-up4.ps1

cd-up4.ps1

Set the working directory to four directory levels up.

This PowerShell script changes the working directory to four directory levels up.

Parameters
PS> ./cd-up4.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

cd-videos.ps1

cd-videos.ps1

Set the working directory to the user's videos folder.

This PowerShell script changes the working directory to the user's videos folder.

Parameters
PS> ./cd-videos.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

check-symlinks.ps1

Checks every symlink in a directory tree.

This PowerShell script checks every symbolic link in a folder (including subfolders). It returns the number of broken symlinks as exit value.

Parameters
PS> ./check-symlinks.ps1 [[-Folder] <String>] [<CommonParameters>]

-Folder <String>
    Specifies the path to the folder
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

check-xml-file.ps1

check-xml-file.ps1

Checks the given XML file for validity.

This PowerShell script checks the given XML file for validity.

Parameters
PS> ./check-xml-file.ps1 [[-file] <String>] [<CommonParameters>]

-file <String>
    Specifies the path to the XML file to check
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

clear-recycle-bin.ps1

clear-recycle-bin.ps1

Removes the content of the recycle bin folder (can not be undo!).

This PowerShell script removes the content of the recycle bin folder permanently. IMPORTANT NOTE: this cannot be undo!

Parameters
PS> ./clear-recycle-bin.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

copy-photos-sorted.ps1

copy-photos-sorted.ps1

Copy image files sorted by year and month.
Parameters
PS> ./copy-photos-sorted.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

decrypt-file.ps1

decrypt-file.ps1

Decrypts the given file.

This PowerShell script decrypts a file using the given password and AES encryption.

Parameters
PS> ./decrypt-file.ps1 [[-Path] <String>] [[-Password] <String>] [<CommonParameters>]

-Path <String>
    Specifies the path to the file to decrypt
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Password <String>
    Specifies the password
    
    Required?                    false
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

download-dir.ps1

download-dir.ps1

Downloads a directory tree from the given URL.

This PowerShell script downloads a folder (including subfolders) from the given URL.

Parameters
PS> ./download-dir.ps1 [[-URL] <String>] [<CommonParameters>]

-URL <String>
    Specifies the URL where to download from
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

download-file.ps1

download-file.ps1

Downloads a file from the given URL.

This PowerShell script downloads a file from the given URL

Parameters
PS> ./download-file.ps1 [[-URL] <String>] [<CommonParameters>]

-URL <String>
    Specifies the URL where to download from
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

edit.ps1

edit.ps1

Edits the given file with the built-in text editor.

This PowerShell script opens a text editor to edit the given file.

Parameters
PS> ./edit.ps1 [[-Filename] <String>] [<CommonParameters>]

-Filename <String>
    Specifies the path to the filename
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

encrypt-file.ps1

encrypt-file.ps1

Encrypts the given file.

This PowerShell script encrypts a file using the given password and AES encryption.

Parameters
PS> ./encrypt-file.ps1 [[-Path] <String>] [[-Password] <String>] [<CommonParameters>]

-Path <String>
    Specifies the path to the file to encrypt
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Password <String>
    Specifies the password to use
    
    Required?                    false
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

get-md5.ps1

get-md5.ps1

Prints the MD5 checksum of the given file.

This PowerShell script calculates and prints the MD5 checksum of the given file.

Parameters
PS> ./get-md5.ps1 [[-file] <String>] [<CommonParameters>]

-file <String>
    Specifies the path to the file
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

get-sha1.ps1

get-sha1.ps1

Prints the SHA1 checksum of the given file.

This PowerShell script calculates and prints the SHA1 checksum of the given file.

Parameters
PS> ./get-sha1.ps1 [[-file] <String>] [<CommonParameters>]

-file <String>
    Specifies the path to the file
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

get-sha256.ps1

get-sha256.ps1

Prints the SHA256 checksum of the given file.

This PowerShell script calculates and prints the SHA256 checksum of the given file.

Parameters
PS> ./get-sha256.ps1 [[-file] <String>] [<CommonParameters>]

-file <String>
    Specifies the path to the file
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

inspect-exe.ps1

inspect-exe.ps1

Prints basic information of the given executable file.

This PowerShell script prints basic information of an executable file.

Parameters
PS> ./inspect-exe.ps1 [[-PathToExe] <String>] [<CommonParameters>]

-PathToExe <String>
    Specifies the path to the executable file
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

list-dir-tree.ps1

list-dir-tree.ps1

Lists the directory tree content.

list-empty-dirs.ps1

list-empty-dirs.ps1

Lists empty subfolders within the given directory tree.

This PowerShell script scans and lists all empty subfolders within the given directory tree.

Parameters
PS> ./list-empty-dirs.ps1 [[-DirTree] <String>] [<CommonParameters>]

-DirTree <String>
    Specifies the path to the directory tree (current working directory by default)
    
    Required?                    false
    Position?                    1
    Default value                "$PWD"
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

list-empty-files.ps1

list-empty-files.ps1

Lists empty files within the given directory tree.

This PowerShell script scans and lists all empty files within the given directory tree.

Parameters
PS> ./list-empty-files.ps1 [[-DirTree] <String>] [<CommonParameters>]

-DirTree <String>
    Specifies the path to the directory tree
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

list-files.ps1

list-files.ps1

Lists all files in the given folder and also in every subfolder.

This PowerShell script lists all files within the given directory tree.

Parameters
PS> ./list-files.ps1 [[-DirTree] <String>] [<CommonParameters>]

-DirTree <String>
    Specifies the path to the directory tree
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

list-folder.ps1

list-folder.ps1

Lists the folder content.

This PowerShell script lists the content of a directory (alphabetically formatted in columns).

Parameters
PS> ./list-folder.ps1 [[-searchPattern] <String>] [<CommonParameters>]

-searchPattern <String>
    Specifies the search pattern ("*" by default which means anything)
    
    Required?                    false
    Position?                    1
    Default value                *
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

list-hidden-files.ps1

list-hidden-files.ps1

Lists hidden files within the given directory tree.

This PowerShell script scans and lists all hidden files in a directory tree.

Parameters
PS> ./list-hidden-files.ps1 [[-DirTree] <String>] [<CommonParameters>]

-DirTree <String>
    Specifies the path to the directory tree
    
    Required?                    false
    Position?                    1
    Default value                "$PWD"
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

list-recycle-bin.ps1

list-recycle-bin.ps1

Lists the content of the recycle bin folder.

This PowerShell script lists the content of the recycle bin folder.

Parameters
PS> ./list-recycle-bin.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

list-unused-files.ps1

list-unused-files.ps1

Lists unused files in a directory tree.

This PowerShell script scans and lists files in a folder with last access time older than number of days.

Parameters
PS> ./list-unused-files.ps1 [[-DirTree] <String>] [[-Days] <Int32>] [<CommonParameters>]

-DirTree <String>
    Specifies the path to the directory tree
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Days <Int32>
    Specifies the number of days
    
    Required?                    false
    Position?                    2
    Default value                100
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

list-workdir.ps1

list-workdir.ps1

Lists the current working directory.

This PowerShell script lists the path to current working directory (but not the content itself).

Parameters
PS> ./list-workdir.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

make-install.ps1

make-install.ps1

Installs built executables and libs to the installation directory.

This PowerShell script copies newer EXE's + DLL's from the build directory to the installation directory.

Parameters
PS> ./make-install.ps1 [<CommonParameters>]

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

new-shortcut.ps1

new-shortcut.ps1

Creates a new shortcut file.

This PowerShell script creates a new shortcut file.

Parameters
PS> ./new-shortcut.ps1 [[-shortcut] <String>] [[-target] <String>] [[-description] <String>] [<CommonParameters>]

-shortcut <String>
    Specifies the shortcut filename
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-target <String>
    Specifies the path to the target
    
    Required?                    false
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-description <String>
    Specifies a description
    
    Required?                    false
    Position?                    3
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

new-symlink.ps1

Creates a new symbolic link file.

This PowerShell script creates a new symbolic link file.

Parameters
PS> ./new-symlink.ps1 [[-symlink] <String>] [[-target] <String>] [<CommonParameters>]

-symlink <String>
    Specifies the new symlink filename
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-target <String>
    Specifies the path to target
    
    Required?                    false
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

new-zipfile.ps1

new-zipfile.ps1

Creates a new .zip file from a directory.

This PowerShell script creates a new .ZIP file from a folder (including subfolders).

Parameters
PS> ./new-zipfile.ps1 [[-folder] <String>] [<CommonParameters>]

-folder <String>
    Specifies the path to the folder
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

publish-to-ipfs.ps1

publish-to-ipfs.ps1

Publishes the given files or directory to IPFS.

This script publishes the given files and folders to IPFS.

Parameters
PS> ./publish-to-ipfs.ps1 [[-FilePattern] <String>] [[-HashList] <String>] [[-DF_Hashes] <String>] [<CommonParameters>]

-FilePattern <String>
    Specifies the file pattern
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-HashList <String>
    Specifies the path to the resulting hash list
    
    Required?                    false
    Position?                    2
    Default value                IPFS_hashes.txt
    Accept pipeline input?       false
    Accept wildcard characters?  false

-DF_Hashes <String>
    Specifies the path to the resulting digital forensic hashes
    
    Required?                    false
    Position?                    3
    Default value                file_checksums.xml
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

remove-empty-dirs.ps1

remove-empty-dirs.ps1

Removes empty subfolders within the given directory tree.

This PowerShell script removes all empty subfolders within a directory tree.

Parameters
PS> ./remove-empty-dirs.ps1 [[-DirTree] <String>] [<CommonParameters>]

-DirTree <String>
    Specifies the path to the directory tree
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

replace-in-files.ps1

replace-in-files.ps1

Search and replace a pattern in the given files by the replacement.

This PowerShell script searches and replaces a pattern in the given files by the replacement.

Parameters
PS> ./replace-in-files.ps1 [[-pattern] <String>] [[-replacement] <String>] [[-files] <String>] [<CommonParameters>]

-pattern <String>
    Specifies the pattern to look for
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-replacement <String>
    Specifies the replacement
    
    Required?                    false
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-files <String>
    Specifies the file to scan
    
    Required?                    false
    Position?                    3
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

search-filename.ps1

search-filename.ps1

Searches the directory tree for filenames by given pattern.

This PowerShell script serves as a quick Powershell replacement to the search functionality in Windows After you pass in a root folder and a search term, the script will list all files and folders matching that phrase.

Parameters
PS> ./search-filename.ps1 [-path] <Object> [-term] <Object> [<CommonParameters>]

-path <Object>
    Specifies the path
    
    Required?                    true
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-term <Object>
    Specifies the search term
    
    Required?                    true
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

search-files.ps1

search-files.ps1

Searches the given pattern in the given files.

This PowerShell script searches for a pattern in the given files.

Parameters
PS> ./search-files.ps1 [[-pattern] <String>] [[-files] <String>] [<CommonParameters>]

-pattern <String>
    Specifies the search pattern
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-files <String>
    Specifies the files
    
    Required?                    false
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

upload-file.ps1

upload-file.ps1

Uploads the local file to the given FTP server.

This PowerShell script uploads a local file to a FTP server.

Parameters
PS> ./upload-file.ps1 [[-File] <String>] [[-URL] <String>] [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]

-File <String>
    Specifies the path to the local file
    
    Required?                    false
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-URL <String>
    Specifies the FTP server URL
    
    Required?                    false
    Position?                    2
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Username <String>
    Specifies the user name
    
    Required?                    false
    Position?                    3
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-Password <String>
    Specifies the password
    
    Required?                    false
    Position?                    4
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

[<CommonParameters>]
    This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 
    WarningVariable, OutBuffer, PipelineVariable, and OutVariable.

이찬희 (MarkiiimarK)
Never Stop Learning.