実行中のバッチ ファイルから別のファイル出力を作成したいと考えています。つまり、生のコンテンツがその中にあります。このバッチ ファイル内では、「end」またはコンテンツの最後に追加した一意の単語が見つかるまで、while または for ループが実行されます。
情報が公開されるため、(重要なコンテンツを含む) ファイルを単純にコピーしたくありません。次に、バッチ経由でファイルを呼び出して実行します。
code:
-start of batch
-check if the file a.txt exist del a.txt
-starts to create the a.txt file
>start of content:
>"the quick brown fox jump over the lazy dog"
>lynx: unique word
>end of content
-writes the content to a.txt using for loop or while until it finds the unique word
-runs the a.txt file
-deletes the a.txt file
-exit
誰かが助けてくれることを願っています。ありがとうございました!または、誰かがそれを行うためのより良い方法を提案できる場合. 私はそれをお願い申し上げます