|
hiiiiiiii Group
iam going to build a project to monitor and control remote PC, the main points in the project are working with, API, image capturing and networking program. and there are many things other. for now i wanna help to understand these concepts and how to do this with VB.NET.
by the way the program have 2 versions server version for administrator and client version for users.
* The administrator can shutdown, restart, close applications,...., etc.
* The administrator monitors the client screen just by choose the local IP of that client.
* The administrator is provided with reports for the client activities of a period of time
* The administrator defines the previlige of the users on the network (Optional)
these are outlines of my Project, i feel i will learn lot of things with this project.
so anyone have any idea helps me, plz submit it to me or anyone wanna join me with this project i will be happy to share him. so if there any one intersting reply here or contact me via E-mail: mdallal84@yahoo.com
|
|
|
|
|
You do realize you're about the zillionth person to try to re-invent PCAnywhere?
Mdallal84 wrote:
* The administrator can shutdown, restart, close applications,...., etc.
* The administrator monitors the client screen just by choose the local IP of that client.
Well, you're going to need a VNC library to help you handle screen capturing. It's simply the best way to do it.
Mdallal84 wrote:
* The administrator is provided with reports for the client activities of a period of time
Being a LAN guy myself, I really don't see the need for this. But, of course, this depends on what your tracking. I know I wouldn't want to go through reports like this. It's too tedious and time consuming. I've got enough crap to do without babysitting everyone. If I want to monitor someones activities, I'll target that person and turn on the sniffer to catch them red-handed.
Mdallal84 wrote:
* The administrator defines the previlige of the users on the network (Optional)
Totally unneccessary and impractical to implement. This is best done by the proper network administration tools for the directory of the network in question, be it Microsoft's Active Directory, Novell's eDirectory (formerly known as NDS), LDAP, whatever, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
sir/madam,
I am Raju Malladada 2005 Batch CSE branch.I got maore interedted to learn the .NET so Plz help me about it means which book i have to refer and even i don't have the .NET CDs tell me how can i get them.
Raju
Raju malladada
|
|
|
|
|
|
|
Hi, I would really appreciate some advice: I need to create a tree structure in vb (this i can do) and then store and retrieve it from a database (i'm using Access), something similar to a directory structure.
My problem is that the number of levels is unknown - I've tried using a table with category and parentCategory fields and making recursive calls to it, but my algorithm is not working the way it should. If someone has better ideas, please let me know...
Dave
|
|
|
|
|
Yours is a question that requires a long and deep answer. Also it could be handled from several standing points.
If you're looking for an algorithm to serialize a tree I imagine something like one of those.
If your tree is not incredibly deep you could associate at each element a code that represent it's position:
First element: A
Sons of A: AA, AB, AC, ...
Sons of AB: ABA, ABB, ABC
and so on.
Then you could save it in a simple record made of: [data][code]
If you want unlimited branches than this won't work. An idea that works only if you treat data sequentially is:
[data][relationship]
where relationship identify if this member is: root, son of precedent or brother of it.
D/K if it helps.
|
|
|
|
|
Hi,
Is there any away to uncompress the files with extension .tar.Z.
Thanks and advance,
Shiva
|
|
|
|
|
There is nothing in the .NET BCL that'll do this. You have to use a third-party library, like #ziplib[^], to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I use Directory.GetFiles to grab the names of files in the specified directory. How can i specify how many of files i need to grab through this command. For example, in a folder have 100 files, but i just need to grab 10 files each time.
Thanks!
|
|
|
|
|
my solution for this is use Directory.GetFiles to get all the files and put into a string array then go through the array to get certain amount of files back.
thanks!
I am Entry level person
|
|
|
|
|
i wrote a simple code as below:
Imports System.IO
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
' Only get files that begin with the letter "c."
Dim dirs As String() = Directory.GetFiles("C:\Documents and Settings\Max\Desktop\software engineer", "*.ppt")
'MsgBox("The number of files starting with c is {0}." & dirs.Length)
Dim dir As String
Dim i As Integer = 0
For i = 0 To 4
dir += dirs(i)
Label1.Text = dir
Next
Catch ex As Exception
MsgBox("The process failed: {0}", e.ToString())
End Try
End Sub
End Class
I am Entry level person
|
|
|
|
|
Thanks for the reply.
But the problem is the system is slow down with command directory.getfiles when there is a huge number of files in the specified path. The files in that path are accumulating fast.
any idea ?
|
|
|
|
|
You'll have to write your own implementation of .GetFiles() . The one you're using doesn't support just getting X number of files at a time.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks, Dave Kreskowiak!
what is the idea behind this .GetFiles()? Go to path, order those files by creation time, and grab it one by one to x number?
Need your advice, Thanks!
|
|
|
|
|
What do you mean?
.GetFiles() just gets all of the filenames in a directory. It doesn't do any sorting.
If you want a sorted list of files by date/time, even if you wanted the newest 10 files, you'll have to read the filename for all the files in the directory, sort them, then take the top 10. There's no way around this.
Now, if you could get away with this, you move the files you've already processed to another folder. This way, you're not trying to read the filenames of a 1,000 files just to sort them by date/time and then process the top whatever number of files. It's just when you're done with them, move them so you don't end up reading the same filenames over and over.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the idea!
|
|
|
|
|
Hi all,
I am runing an application which will check URL in my database there are around 3000 url in my database and i use .net http response and request to check the url the following are the code snippet..
Public Function checkurl(ByVal url As String) As String
Dim req As System.Net.HttpWebRequest
Dim res As System.Net.HttpWebResponse
Dim r As System.IO.StreamReader
Dim ex As Exception 'error exeption holder
Dim pge As String 'page holder
Dim title As String
Dim strreturnstring As String
'url = "http://www.getforme.com/e404.htm" ' not working becos have charset =ISO - 8859-1
'url = "http://environmentalchemistry.com/" not working becos have charset = iso - 8859-1
'url = "https://www.iclub.com/investorama.html"
Try
'display request url
req = req.Create(url)
req.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)"
req.AllowAutoRedirect = True
'get page
res = req.GetResponse()
r = New System.IO.StreamReader(res.GetResponseStream())
'pge = r.ReadToEnd
r.Close()
res.Close()
strError = "OK"
status = "True"
'Convention is First Value is the Status and Second value is Errmsg
strreturnstring = status & "~" & strError
Return strreturnstring
Catch ex
status = "False"
strError = ex.Message
strreturnstring = status & "~" & strError
Return strreturnstring
End Try
End Function
my code working fine but the problem is when my code run URL which as charset = iso - 8859-1 or charset = windows - 1252 it just thro exception that The remote server returned an error: (400) Bad Request. or The underlyng connection is close..
can any one tell the reason why,
Thanx for your interest
regards
cyus
|
|
|
|
|
I use visual studio .net to develope a website. I have run the project on my local machine and it works fine, and all the requiredvalidators and rangevalidators work correctly.
To upload the site to the remote server, which is actual host of the site, I compile .dll files and put both .dll and .aspx files onto the remote server and access the site from actual web url, all the validators do not work at all. For example, a form with several required fields can be submit even when all the fields is empty.... I have no idea what I missed.
Could anyone here help me out?
Thanks in advance.
|
|
|
|
|
Did you just FTP the files into place or did you actually make a Setup Project for it an deploy that to the production server and run it?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I just FTP the files into the wwwroot folder on the remote server. I did't do Setup stuff. All the projects I have done are in ASP. This is my first asp.net project, I really don't have ideas about how to setup remote server running environment. How should I setup it? Could you please give me some details?
Thank you very much!
|
|
|
|
|
I got the solution to my problem from 4guysfromrolla.com
The problem is
aspnet_client\WebUIValidation.js on the remote server was missing.
|
|
|
|
|
I have made an installer with third-party tool "Setup Factory 6". After installing when I run application it causes an error about Object Initialization of some control. I have analysied all the dependencies and included them in installer.
Any solution?
Shoaib Nawaz
|
|
|
|
|
You'd be much better off asking this on a board that supports Setup Factory, like SetupFactory.com.
I use Wise for Windows Installer myself.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I get an error "Operator '=' is not defined for types 'System.Drawing.Color' and 'System.Drawing.Color'"
I am trying to do this:
if lblslots.BackColor = System.Drawing.Color.Red then
endif
Not a real big deal if I do not get an answer, more curious than anything else...
|
|
|
|