Jump to content

Kovitt

Active Members
  • Posts

    218
  • Joined

  • Last visited

About Kovitt

  • Birthday 02/24/1991

Profile Information

  • Location
    Chicago

Kovitt's Achievements

Polymath

Polymath (5/7)

0

Reputation

  1. Many people connect to Machine A. I am trying to the the client name of what ever machine is currently connected to machine A. The script will run on machine A and then send this information to other computers that will have another script to report who is connected to what so they dont kick someone off of it.
  2. Hello, I am trying to get the client name from a computer that is remotely connected to. I am aware of Quista and Query Session but then cannot give me the client name (in windows 7, you go to the task manager and its under the users tab). The way this machine is configured we have to use the same login for everyone that remotes into it, so doing query session /user doesn't do me any good. However the Client Name is the computer name of the machine that the user is remoting in from. Does anyone know how I can get this information? Thank you
  3. Hello, So I have an array of random usernames(that repeat), that are subject to change at any time, and I need to make a list of all of the users in my array, with out repeating them.. I figured you would use somesort of for loop to go threw the array, any ideas on what to do? Example: UserZ UserM UserO UserZ UserP UserE UserO UserL UserP UserU UserZ [code=auto:0] Thanks!
  4. Perfect!! Thanks!!!!!!!!
  5. Hello, Is there a way to have a window pop up asking you to browse for a file? Thanks in advance!!!!!!!
  6. Array that adapts to the number of items in your file.. $NumLines = _FileCountLines("TextFile.txt") Dim $Array[$NumLines]
  7. I am sorry... I am trying to read the contents of a file and write them to another file.
  8. Hello, I have a txt file that I need to filewriteline the contents of it. How do you do this? I would use an array, but the contents of the text file changes every time the script is ran. Any suggestions? Thanks in advance
  9. Nvm I figured it out... I ended up using @Hour & @Min and using a string reg to separate the time I had stored.. May not be the best way, but it works. Thanks for your time!
  10. Hello, How would you guys go about comparing two times? I need to ba able to tell if a time(stored in a variable) was within the last ten minutes. The time format is 11:59:51 29-Jul-2008, and I need to get the time from the computer then compare the two. Thanks for the help guys!
  11. Is this what you are talking about>? http://www.autoitscript.com/forum/index.php?showtopic=16724
  12. My string reg doesn't work properly : ( My StringReg is $JobArray = StringRegExp($JobInfo, "(?:\s{1,})("& $Job[$JobNum] &")(?:\s{1,})([0-9]{1,})(?:\s{1,})([0-9]{1,})",1) If @error = 0 Then $JobInfoFinal = $JobArray[0] & " " & $JobArray[1] & " " & $JobArray[2] MsgBox(0,"Session ID", $JobInfoFinal) ;_ArrayDisplay($JobArray) EndIf It is searching through an array that contains: JOB SID SERIAL# ---------- ---------- ---------- 532 187 4448 241 447 13965 281 271 61865 530 818 45848 529 530 37572 533 740 60799 141 128 47172 7 rows selected. $Job[$JobNum] = 141 So I need it to pull: 141 128 47172 What have I done wrong?
  13. Thank you sooo much for the help! *I don't know if you noticed my edited post above with a more detailed script* My question is if that works for you , then how come I get an error with: $JobArray = StringRegExp($JobInfo, '(?:\s{1,})(' & $Job[$JobNum] &')(?:\s{1,})([0-9]{1,})(?:\s{1,})([0-9]{1,})') I don't need to loop through jobs because I already know which job I need it to select. The one with the same [#] as $JobNum. I keep getting an error with my stringreg and yours looks almost Identical. muttley Again I really appreciate all the help you have provided!
×
×
  • Create New...