My trouble is to read a string from test.txt
and type it in as a console command.
Example:
user is asked to provide a path to their sandbox folder and at the same time in a console it is already offered (from a saved test.txt
), only waiting for the user to hit ENTER
Path to your sandboxes folder: C:\Whatever\Path\Sandboxes
Where Path to your sandboxes folder:
is part of a set /p
command in a script waiting for an input; and C:\Whatever\Path\Sandboxes
has been typed-in by the script as a pre-offered path. From here the user can either hit ENTER, if satisfied with offered path or edit it: C:\Whatever\OtherPath\Sandcastles
I assume, the first step would be to read from test.txt
into a variable, but how do I proceed from there? How do i type the characters of this string variable into a console?