bielius
Posts: 217 +17
Hey, I have to do this project at school, I have to make some .bat files that execute different things.
what I have to do:
4. make a batch file called show_info.bat that
clears the screen,
then displays the current System version,
then displays the date followed by the time,
then displays the computer name,
then displays the user name,
then displays the user home directory,
This is what I have so far:
CLS
VER
%date% %time%
%computername%
%username%
%homedirectory%
cmd
I know that this might not(IS NOT) be right. But when for example cmd executes %username% it displays the username and tries to use my username as a command, which is not recognised. My question is, how do I just display those things, instead of "pasting" them in and using as a command?
oh and what is the command which displays user home directory?
Thank you so much!
what I have to do:
4. make a batch file called show_info.bat that
clears the screen,
then displays the current System version,
then displays the date followed by the time,
then displays the computer name,
then displays the user name,
then displays the user home directory,
This is what I have so far:
CLS
VER
%date% %time%
%computername%
%username%
%homedirectory%
cmd
I know that this might not(IS NOT) be right. But when for example cmd executes %username% it displays the username and tries to use my username as a command, which is not recognised. My question is, how do I just display those things, instead of "pasting" them in and using as a command?
oh and what is the command which displays user home directory?
Thank you so much!