Search found 3 matches
- 15 Feb 2016 16:54
- Forum: DOS Batch Forum
- Topic: Echo an echo command to batch file using CLI
- Replies: 7
- Views: 8737
Re: Echo an echo command to batch file using CLI
Well it is not only about this code, am looking for something more generic, so that was just an example. Regardless of the function, I want this string to be present in a newly created batch file named TEST.bat, but using CLI (Assuming Command.exe will require a Y to run) echo Y | Command.exe This w...
- 15 Feb 2016 05:46
- Forum: DOS Batch Forum
- Topic: Echo an echo command to batch file using CLI
- Replies: 7
- Views: 8737
Re: Echo an echo command to batch file using CLI
The idea is having an echo command to respond to the prompt to avoid user interaction.
This will still prompt for a confirmation, however if I use
echo D | xxxxxxxx
This will automatically respond with a D, so I basically need it to be present in the TEST.bat am creating.
This will still prompt for a confirmation, however if I use
echo D | xxxxxxxx
This will automatically respond with a D, so I basically need it to be present in the TEST.bat am creating.
- 15 Feb 2016 05:30
- Forum: DOS Batch Forum
- Topic: Echo an echo command to batch file using CLI
- Replies: 7
- Views: 8737
Echo an echo command to batch file using CLI
I am trying to write the following batch file directly from the command line, however am facing a problem with the following line. The output within my batch file should be a line as follows: echo D | xcopy %USERPROFILE%\Desktop C:\%username% /E /Y /H However I cannot write it on my TEST.bat file, w...