Skip to content

Tool to create shortcuts to file paths listed in a given CSV file

License

Notifications You must be signed in to change notification settings

tak-sakumoto/file-shortcut-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-shortcut-tool

Introduction

This repository provides a tool for creating shortcuts to file or URL listed in a specified CSV file.

Feature

The key features of this tool are as follows:

  • Create a shortcut file for a file or URL
  • Detects invalid file paths and skips creating shortcuts to them
  • Remove invalid characters from file names
  • Can create shortcut files based on environment variables

Usage

Command

> .\src\Main.ps1 -listPath .\data\list.csv -defaultParent \path\to\default_folder -Preview

Arguments

Argument Required Default Explanation
-listPath <path> o - A path to a list CSV file that describes the targets of the shortcut creation
-defaultParent <path> x .\ A default path to save shortcuts
-Preview x False A flag to show a preview before creating shortcuts

List (CSV)

Path,Target,Name
\path\to\file_A,\path\to\folder_B,
\path\to\folder_C,,Dir_C
https://example.com,,

If the CSV file specified by -listPath is described as above,

  • the shortcut for \path\to\file_A will be named file_A and placed in \path\to\folder_B.
  • the shortcut for \path\to\folder_C will be named Dir_C and saved in the location specified by -defaultParent.
  • the shortcut for http://example.com will be named example.com and saved in the location specified by -defaultParent.

Author

Takuya Sakumoto (作元 卓也)

About

Tool to create shortcuts to file paths listed in a given CSV file

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published