PDA

Click to See Complete Forum and Search --> : application start while booting


lxs
Mar 22nd, 2001, 05:58 AM
how can i automatically start my application when i boot computer...it must work at all login's and should not be visible in startup of start menu.

how do i get the list of all pcs connected to lan

how do i get the process queue info?
ie..how much time process spends in queue etc..?


thanx,
lxs

Vlatko
Mar 22nd, 2001, 01:09 PM
Put it in

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

or
in the windows.ini to load at startup.

lxs
Mar 22nd, 2001, 07:46 PM
will try.thanx

Mar 23rd, 2001, 02:23 PM
If you want it to start up in the login screen, you need to run it as a service, thus add it to RunService instead of Run.

lxs
Mar 24th, 2001, 02:18 AM
thanks,
it works...if i want to do this to all pcs on lan then do i hav to go to each one and put it or is there a way to do it for all at once from 1 m/c?

Lord Orwell
Mar 24th, 2001, 04:42 AM
well, assuming you have access rights, you can edit the registry of other computers over a lan using this api call to open their registry:
Declare Function RegConnectRegistry& Lib "advapi32.dll" Alias _
"RegConnectRegistryA" (ByVal lpMachineName As String, ByVal hKey As Long, _
phkResult As Long)

lxs
Mar 24th, 2001, 07:45 PM
thanks,
will do it and see on lan.

sachinsugandhi
Mar 26th, 2001, 02:23 PM
but your program will fail if system is started in safe mode so if you or any body else know the solution which can autorun even in safe mode than.please tell me.

Mar 26th, 2001, 03:15 PM
Why not just install it on the master machine?

lxs
Mar 26th, 2001, 11:25 PM
ok will do and see if it works in safe mode..
where do i install in master computer ? is it possible to edit its registry frm any other pc..r any other pc fr that matter?

how do i make the entry into windows.ini file ? will this solve the problem (or hav i gone mad!!)???

really thanks for all these solutions..i had no idea abt it now i can start working on it!

thanks,
lxs

Lord Orwell
Mar 27th, 2001, 03:32 AM
well, as a stop-gap measure, you could always disable safe-mode :)

gwdash
Mar 28th, 2001, 09:50 PM
what exactly does this sofeware do? safe mode is designed to run with default configuration, so you can recover a computer you crashed. you can't realy do anything in safe mode. you can't use it as a true operating system, it's just a diagnostic tool/mode!

techman2553
Mar 29th, 2001, 05:07 PM
Let's see....

You want a program that will:

- Automatically start when the system boots
- Must work on all logins
- Must be hidden from startup options
- Must be functional even in safe mode
- Must be remotely deployed to all computers on a network

Your not working on a virus are you ???

( Just kidding !! Sorry I couldn't help it !!)

Lord Orwell
Mar 29th, 2001, 05:25 PM
If he is, and it's written in vb, then it will be a pretty large one. :rolleyes:

lxs
Mar 31st, 2001, 07:42 AM
u can use my appln as a virus too :-) but its not ment fr that purpose..its fr administrative use..
what it does is to get a list of running processes in any pc..it can terminate a process if the monitor finds overuse of printer../playing gamess etc... fr colleges,schools..
also it can logoff/restart/shutdown pc..
monitor screen at interval of 3 milli sec..
execute dos command..
run any application..
etc..
i need to first install the server to all the terminals while bootup-so it doesnt mess the startup..
the server listens..and monitor connects to any pc..
i used the ping procedure to get the connections on lan..
can i pass messages to it?
well thats it fr viruses..it depends on the monitor!!!


currently working to get the process timings..and trying to get the file transfer working..need a super fast file trasfer program to use to transfer captured screen
....


Please tell me some more ways the appln can be of use..


thanks!

Lord Orwell
Apr 1st, 2001, 03:43 AM
i've been thinking of ways to monitor the screen like that. Here's what i came up with:
First you send the initial screen shot. You store the screen shot in memory also. Next time you take a screen shot, you OR it with the original one. (?). This will turn every thing that is the same as the last to black. If your program scans the new image and finds an area that isn't black, then it transmits only that area.
When a change is detected, you send the differences then afterwards, you update your stored image.

This is just a possibility. But i think it could be used to transmit screen shots pretty fast. Basically it works like .fli does. Each successive frame is the last frame plus changes. Perhaps you could study the format or come up with your own code. Its a little too much to come up with especially since i don't have a nt network to test it on :)

lxs
Apr 1st, 2001, 04:03 AM
WOW i never thought of this possiblity!

what i did was to capture the screen store it in the picture box,save it in a bmp file and transfer to other pc as a bmp file and display in image box of monitor ..i put a timer (3 millisec)to do this reguraly-so i get it in that interval..later i was asked to do slow/fast
monitoing..and changed the interval..thats all.. will ur methord do it faster?
thanks,
lxs

Lord Orwell
Apr 1st, 2001, 04:31 AM
i don't see how it could possibly take longer. It should take a lot less time. For example if they are just moving the mouse around the screen, all you would capture would be the screen area where the mouse was, and the new area where it is.
And if they are not doing anything, reading a text document and not scrolling, etc, then you wouldn't have to transmit ANYTHING. The last part would be real easy to implement. Just check if the screen has changed. If not then no send.

lxs
Apr 1st, 2001, 04:40 AM
u r right..my problem is that i dont think i can handle the oring part.. (its way toooo high above my head to understand!!)

but even then there too i would hav to use a file transfer program..

i need a super fast file transfer program..

if i use the file system objects..it cant overwrite exisisting one..and deleting is not possiblble.
thanks,
lxs

lxs
Apr 1st, 2001, 07:46 AM
i was just wondering how these software people manage to run appln while booting without adding in HKEY_LOCAL_MACHINE or the startup?
is there any way to do it or am i terribly mistaken?

Lord Orwell
Apr 1st, 2001, 03:05 PM
lots of ways.
win.ini has load= and run= commands.
system.ini has the shell=explorer.exe yourfilennamehere.exe
etc

lxs
Apr 1st, 2001, 09:29 PM
Thanks :-) I am going to try each 1 of the ways..

Recently a couple of guys kept shutting our appln by entering into the HKEY_LOCAL_MACHINE They used the program in :
www.twd-industries.com
I was looking out a way to stop them so we could concentrate on our programs..
thanks to you all we can do it now.. and i can do a better job by placing my application path where they wont know (so others dont delete it durning presentation!) !

Will try with each 1 of the solns above,
:-)
thanks again!
lxs