Place username in text file - Help Req
I am looking to place the current logged on username into a text file on the local machine. How is the best way to do this?
I am using Wise and I took a look at the WiseScript editor and it appears that I would use the 'Insert line into text file' action but I am not sure how I go about reading in the current userid.
Also, I am difficulties getting Wisescript editor to create an exe so that I can test it....It doesnt seem to compile
Thanks
Aidan
I am using Wise and I took a look at the WiseScript editor and it appears that I would use the 'Insert line into text file' action but I am not sure how I go about reading in the current userid.
Also, I am difficulties getting Wisescript editor to create an exe so that I can test it....It doesnt seem to compile
Thanks
Aidan
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
brenthunter2005
19 years ago
Posted by:
Bladerun
19 years ago
Posted by:
WiseUser
19 years ago
Posted by:
PowerCat
19 years ago
Hello. Here is how you can do it with a batch file.
echo %username% > c:\username.txt
If you need other things in the text file, you can easily do this:
echo [Someheader] >> c:\username.txt
echo %username% >> c:\username.txt
echo [Somefooter] >> c:\username.txt
The difference between > and >> is that double greater than signs will append the file, rather than replace it.
echo %username% > c:\username.txt
If you need other things in the text file, you can easily do this:
echo [Someheader] >> c:\username.txt
echo %username% >> c:\username.txt
echo [Somefooter] >> c:\username.txt
The difference between > and >> is that double greater than signs will append the file, rather than replace it.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.