Is there way to echo text after a set command? I have tried, but nothing seems to work. Here is my code:
@echo off
Echo Enter a website:
Set /p op="Https:\\" ".com"
:: The ".com" would be displayed behind the users input.
if %op%==%op% goto Show
:Show
cls
Echo Website: Http:\\%op%.com
pause
exit
How would I get the .com to be displayed after the input? I would preferably like to have the ".com" frozen in one spot, no matter how big the users input is.
I took the solution from this answer and slightly modified it in order to fulfill this request.
EDIT: New method added (requested in a comment)
Per @Marged's comments, I suspect this is impossible (or at least extremely difficult) by batch file.
Here's a PowerShell solution should that be of use: