Scripting Question

Want to see if there is something I missed

04/28/2011 2585 views
Hello, I have a simple off-the shelf app to recapture, but instead of a master license, I am trying to drop a file in the program directory. Each file, needs to be has the username, and specific license and key included in the simple text file.

I originally was hoping that I could make a two column table with the username and keys, and have WPS pick up the current logged on user, and pick the appropriate user name and license to append into the text file. Never doing this before, I thought it would be possible. I am not a strong scripter, so I was trying to avoid this, but now it appears to me, that I will have to write a wise script, to look at the logged-in user, and have it resolve and match user names and then append the blank text file that I wll drop during the recapture.

If anyone knows an easier way, or can point me in the right direction, it would be appreciated!

Thank you in advance for your time and consideration.
0 Comments   [ + ] Show comments


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

Use active setup.
Ensure proper rights have been granted to the file you're attempting to update.
echo %USERNAME% >>C:\program files\myappname\Myfile.txt


echo %USERPROFILE%\My Documents\myfile.txt
Answered 05/02/2011 by: Secondlaw
Third Degree Blue Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ