Windows コマンド ラインを使用して、ディレクトリ内のすべてのファイルのリストをフル パスを含めてエクスポートします。コマンドは次のとおりです。
DIR /b/s/n/a:-d/o:>"C:\Users\user\Desktop\file_list.txt"
/b to list only files and folder with no additional information;
/s to list all files within the subfolders;
/n to list long names (here is my problem, it still list max. 255 char);
/a:-d to not list directories without files;
/o to sort files.
PowerShell で同様のコマンドを実行したいのですが、255 文字を超えるファイルを一覧表示したいと考えています。
誰でもコマンドを手伝ってもらえますか?