Hello,
What you can do is, create another task that will create a text file (using Create File command), which will store username and using 'Log to File' command, initialize that particular variable with blank. In that way you don’t even have to deploy text file manually at remote machine. The text format of task would appear as follows.
Create Text File "C:\Temp.txt"
Log to File: $Prompt-Assignment$= in "C:\Temp.txt"
Create seperate exe for this task and run it only once at remote machine. It will create text file that stores username as well as will initialize the variable with blank on remote machine.
Now, your main task or exe can read value of a variable from text file and can process accordingly.
Hope that helps.
|