Saved Bookmarks
| 1. |
Solve : How to Echo this? |
|
Answer» Hi everyone, I've been trying to echo the following from a batch file to another batch file: Code: [Select]Echo.SET /p="Hello World"<NUL|clip >> "C:\File.bat"But in the new batch the file is BLANK, is SOMETHING missing? Do I need to add brackets? Note: The idea is to use the clip file to copy any assigned text. Thanks in advance Code: [Select]Echo.Set /p="Hello World"^<NUL^|clip >> "C:\File.bat" Modern Windows will not let you write to c:\ by default. Maybe use something like this "%temp%\file.bat" Hi foxidrive, Thanks for the SUGGESTION, but you know what, it doesn't matter where I set the script to be output, at the END I still get the same thing, an emty or blank batch file. I'am so sorry foxidrive, I inadvertently replied to you... You modified the code THANKS A MILLION, THANK YOU SO MUCH foxidrive, I would like to double thank you for helping me, that was so nice the way you solved my problem. Thank you so much. You're welcome - thanks for your feedback. I was a bit sneaky for not making it clear that I had changed your code. hehe |
|