실행중인 배치 파일에서 다른 파일 출력을 만들려고합니다. 즉, 원시 내용이 내부에 있음을 의미합니다. 이 배치 파일 안에는 콘텐츠의 끝에 추가되는 "끝"또는 고유 단어가 발견 될 때까지 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
누군가 도움을 줄 수 있기를 바랍니다. 고맙습니다! 누군가가 더 좋은 방법을 제안 할 수 있다면. 고맙겠습니다
왜 새 배치 파일을 만들어야합니까? 왜 단순히 코드를 기존 배치 파일 내에서 함수로 부르는 것이 좋을까요? – dbenham