I'm working within a batch file and I have a Perforce command to call in order to gain some user information. The command is:
p4 -Ztag -F %clientName% info
Now what I need is for the result of this command to be held in either a variable or a file (ideally the former). But for the life of me I can't figure out how to do so, can someone please help me out.
I gave the following command a try:
p4 -Ztag -F %clientName% info > %HOMEPATH%\clientName.txt
But the results were:
p4 -Ztag -F info 1>\Users\UserName\clientName.txt
With the file "clientName.txt" containing:
info
Which is incorrect.