Giter VIP home page Giter VIP logo

fix-combined-character-filename's Introduction

名前

Fix-Combined-Character-FileName.ps1

概要

ファイル名、ディレクトリ名のUNICODE結合文字を、普通の1文字に変換する

構文

Fix-Combined-Character-FileName.ps1 [[-Path] <String>] [-Rename] [-Confirm] [<CommonParameters>]

説明

ファイル名、ディレクトリ名のUNICODE結合文字になっている部分を、普通の1文字に変換する。 例えば、「か + ゛(濁点記号)」を、「が」に変換する。

Macは、ファイル名をUNICODE結合文字で保存するが、Windowsは、普通の1文字で保存するので、MacからWindowsに、USBメモリーでファイルをコピーした際など、MacとWindowsのファイル交換時に問題が生じる。

Macからファイルをコピーしてきた後で、このスクリプトを動かして、ファイル名をWindowsの一般的な形式に変換しておくと、後々トラブルになりにくい。

パラメーター

オプション 説明
-Path <String> 変換対象のパス名。このPath以下の全ファイル、ディレクトリに対して処理を実行する。
-Rename [<SwitchParameter>] 実際にファイル名をリネームするかどうか。
-Confirm [<SwitchParameter>] RENコマンドを実行する前に確認するかどうか。

利用上の注意

未署名のPowerShellスクリプトなので、実行に際しては未署名のスクリプトでも実行できるようにする必要があります。

例:未署名のスクリプトでも実行できるPowerShellを起動する
PowerShell.exe -ExecutionPolicy Unrestricted

Author

Hideo Matsumoto <[email protected]>

License

MIT

fix-combined-character-filename's People

Contributors

pekeq avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.