Everything posted by phiban
-
vb.NET Object/Array problem
Cool, Thanks for all the help guys
-
vb.NET Object/Array problem
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?
-
vb.NET Object/Array problem
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
-
VB.net, Reading 'X' number of Bytes from a file
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?
-
VB.net, Reading 'X' number of Bytes from a file
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?
-
[Help] Restart several PCs at a certain time
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?
-
setting a static IP with a Batch File/vbs
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!
-
setting a static IP with a Batch File/vbs
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
-
Display the producy key
Thanks for the help Plamdi! thanks everyone!
-
Registry and IP?
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
-
Registry and IP?
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!
-
Display the producy key
Cheers Hamins, so how do i actually read it? The product id is just numbers?
-
Display the producy key
cheers great info!
-
Help Please!
any ideas??
-
Display the producy key
cheers for the linky! Anyone else know where it is?
-
Display the producy key
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
-
Help Please!
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!