1.

Solve : "SET" Command and Editing a BAT?

Answer»

Hello GUYS,

I need a little help:

How can i make a variable like "NINO" to the username

EG:
Code: [Select]SET NINO=USERNAME
ECHO %NINO%
PCFORMNINO
Is there a special way to SAY that USERNAME is the username? %username% holds the current username account. I don't know if that's what you're looking for or not though.

Code: [Select]set "NINO=%username%"

Type SET at the command PROMPT and you will see all the environmental variables that are in use.Yeah yeah

@echo off
echo haha
net user %username% 12128949348353
pause

Another thing, is there ANYWAY to make the file "unclosable" like the shutdown GUI?

And also make it non editable?



Discussion

No Comment Found