lhamil64
In Runtime
- Messages
- 398
In batch, is there a way to have a string (containing other variables) get "put into" the variable?
The batch script i am trying to make (in the end) (hopefully) print the path to the current user's startup folder into a text file.
here is what i have so far.
if you replace "set startup" with "echo" it will print out the path to your startup folder.
In the language i usually program in (Liberty BASIC) all you have to do is this:
and it would read: "StringHi.Next part.
So i was thinking it would be something like that in batch (i also googled how but nothing came up)
Any ideas?
-lhamil64
The batch script i am trying to make (in the end) (hopefully) print the path to the current user's startup folder into a text file.
here is what i have so far.
Code:
@echo off
set startup="%HOMEDRIVE%%HOMEPATH%\Startup"
echo startup
pause
if you replace "set startup" with "echo" it will print out the path to your startup folder.
In the language i usually program in (Liberty BASIC) all you have to do is this:
Code:
Variable2="Hi."
varName$="String"+Variable2$+"Next part."
print varName$
and it would read: "StringHi.Next part.
So i was thinking it would be something like that in batch (i also googled how but nothing came up)
Any ideas?
-lhamil64