Jump to content

phiban

Member
  • Posts

    17
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Ireland

Everything posted by phiban

  1. yeah i was under the impression that a struct was the way to due to the diffrent data types, how would i make a generic list. Also just for my information, how will the other class Read_Packet be able to extract the diffrent data types?
  2. hi all, Basically I need your advice on some programming issues. I have class called Create_Packet which takes in values from the Main Form. The information is a mix of three Integers, a Byte array(The byte array has a string stored in it) and a Long. Is there a way that i could take all these values and store them in an object(or what ever would be best) and place it in a Queue once its removed from the queue, read back the information in another class called Read_Packet? If it would be possible for the other class to read the information back, how would it retrieve the information, any examples would go a long way (Please bear in mind im just getting into programming now so if an object is what should be used here, please let me know why) Any help would be most welcome
  3. sorry i didnt explain my self right in that last post, what i meant to say was: If i had a file like Mstest does, how would I read the first 80 bytes and then the second 80 and so on?? would i use the fs.seek method?
  4. Cheers jcarle, I take it that I would want to be using the Seek functionality yes? '---seeking fs.Seek(11, SeekOrigin.Current) fs.Read(bytes, 0, 6) For i = 0 To 5 Console.Write(Chr(bytes(i))) Next fs.Close() In the above example the starting position is 11, i take it that if i was implementing this concept i would have the index at 0 not 11 correct?
  5. Can you post the code for the VBs so we can see what could be wrong with it? With regards to the Scheduled task, try using the AT command (at a command prompt), if you can create a working shutdown task from here then scripting a batch file should be no bother to deploy to you 500 PC's. Also can you explain what you mean by PC numbers?? Do you mean IP addresses?
  6. Thanks gunsmokingman! this was perfect thanks for digging it up for me! Although I do have one question (A stupid one) for you How can the sql select statement work if I dont have sql installed on the machine, is there a "hidden / OS" sql service running? Thanks!
  7. Hey guys, Is it possible to set a static IP on a computer using a Batch File or VB script? Basically I want to run a script, which will configure the machines IP, Gateway etc, would the batch or vbs edit the registry if so could you show me how? Also could I retrive this information at a later stage in the same way?? Thanks in advance
  8. Thanks for the help Plamdi! thanks everyone!
  9. cheers, i was actually looking in there but didnt check the parameters tree lol mmm....how would one pull this info out? also how would i know which interface id it was, without actually going through the list? P.S Sorry about the additional questions
  10. Hey guys! (Another Question). Just wondering in xp or any other version, if i have my machine which gets its IP from a DHCP server, can i retrieve it from the Registry? Basically Im writting a app which gets the machines IP address, which then gets sent to a database. Any idea's how i could get the IP address? would it be in readable form, as in a string of ints? thanks!
  11. Cheers Hamins, so how do i actually read it? The product id is just numbers?
  12. cheers for the linky! Anyone else know where it is?
  13. Does anyone know a command which i can use to view a machines product key? A little background info: Im developing a application for my companies Network, which will retrieve a machines Product Key, also i need to know if its possible to change it? is there a registry location for the product keys? and if so can i simply change it and then have the user re-activate? Ta
  14. Hey all, Quick Question If i have two hard drives in my machine (Disk 0 and Disk 1), disk 0 has one partition "c:" with xp installed on it. On disk 1 i have two partitions "d:" and "e:". Can i run a unattend install of Server 2003 onto "d:" from my "c:"(i have the build copied in my c:)? if so how do i select to install to d: for example? would i use a command like c:\builds\server\i386\winnt.exe /unattend c:\unattend.xml /noreboot /installto d:? Any help wud be super!
×
×
  • Create New...