Associate
- Joined
- 24 Jul 2006
- Posts
- 15
Hi Guys,
Having a play with Citrix and batch files at the mo, can anyone help me with completing a script to export information to a text file based on a query?
the data i have available when running a query on a citrix server command prompt is:
C:\WINDOWS>query session
SESSIONNAME | USERNAME | ID STATE | TYPE DEVICE
ica-tcp | 65536 | | Listen wdica
rdp-tcp | 65537 | | Listen rdpwd
ica-tcp#1 | hadfieldc | 1 | Active wdica
>ica-tcp#7 | dovers | 2 | Active wdica
C:\WINDOWS>pause
Press any key to continue . . .
it will always have the ">" before the user's session name that is making the query,
Is there any way that I can use the ">" to force the "sessionname" to export to a temporary text file for it to use. to enable it to pull it to use in a session reset function - rather than asking for the user to input the information based on what they can see?
let me know if I have confused you.. and if you have any ideas!
sorry about the formatting!
cheers!
Having a play with Citrix and batch files at the mo, can anyone help me with completing a script to export information to a text file based on a query?
the data i have available when running a query on a citrix server command prompt is:
C:\WINDOWS>query session
SESSIONNAME | USERNAME | ID STATE | TYPE DEVICE
ica-tcp | 65536 | | Listen wdica
rdp-tcp | 65537 | | Listen rdpwd
ica-tcp#1 | hadfieldc | 1 | Active wdica
>ica-tcp#7 | dovers | 2 | Active wdica
C:\WINDOWS>pause
Press any key to continue . . .
it will always have the ">" before the user's session name that is making the query,
Is there any way that I can use the ">" to force the "sessionname" to export to a temporary text file for it to use. to enable it to pull it to use in a session reset function - rather than asking for the user to input the information based on what they can see?
let me know if I have confused you.. and if you have any ideas!
sorry about the formatting!
cheers!