|
Hi
adding an exe to the startup is quite simple:
in registry at HKEY_LOCAL_MACHIN (if user has administrative privillages) or "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" ,
add a string value:
The key name could be anything but the value should be the local path of the executable file on hard drive (or even CD drive!)
The executable file would run at each log on!
|
|
|
|
|
I know the Mutex and Semaphore usage in any OS. but not sure of Recursive Mutex and Semaphore.
If anybody guide me for this it will be of great help.
Anil Kumar
|
|
|
|
|
Hi, in windows explorer we could see the drive (floopy drive, CDROM drive, mapped drive, harddrive). But I want to list all of the drive that my computer have in MS-DOS command prompt. Is it possible to do that? If yes, what is the command to list those drive in the command prompt?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
As far as I know, there isn't a built-in command to do it, but it's relatively easy to do using WMI via scripting, or using the Win32 API.
Steve S
Developer for hire!
|
|
|
|
|
|
Thank you very much for your information. But the command just list only the mapped network drive. And how about the removeable drive and the system partition drive in my computer? How could I list it?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
By using some scripting or some simple SDK C/C++ code; but you'd have to write something.
Steve S
Developer for hire!
|
|
|
|
|
If you have WMI installed, you can create a VBS file that contains this;
<------------cut here-------------->
function driveType(x)
if (x = 0) then
driveType = "Unknown"
elseif x = 1 then
driveType = "No root"
elseif x = 2 then
driveType = "Removable(flash/floppy)"
elseif x = 3 then
driveType = "HDD"
elseif x = 4 then
driveType = "Network drive"
elseif x = 5 then
driveType = "DVD/CD"
elseif x = 6 then
driveType = "RAM disk"
end if
end function
strComputer = "."
set wbemSvc = GetObject("winmgmts:\\" & strComputer)
set wbemSet = wbemSvc.InstancesOf("Win32_LogicalDisk")
for each wbemObject in wbemSet
wscript.echo wbemObject.Name & " " & driveType(wbemObject.DriveType)
next
<---------------- cut here--------->
save it as say, driveL.VBS, then create a CMD file that contains
CSCRIPT /NOLOGO driveL.VBS
and run your cmd file. Should give you something like this;
A: Removable(flash/floppy)
C: HDD
D: HDD
E: DVD/CD
G: Removable(flash/floppy)
X: Network drive
although obviously, your drives may vary
Checkout the Win32_LogicalDisk docs in MSDN, and you can see how it all works. Not a huge amount of work to extend it to display things like network paths, but I left you something to do - I'm supposed to be looking for paid work ATM, after all !!
Steve S
Developer for hire!
|
|
|
|
|
Thank you very much for your valuable answer. Now it is working. Can you give me the resource that you post me the answer? It is easy for me to learn in the future and customize the code as I need.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Most of the information comes straight from the MSDN library. The WMI stuff is explained (kind of ) in there in various places, but the "Scripting Clinic" is a good place to start. If you don't have the MSDN library on CD, use the online version[^] as a starting point.
WMI is easy to use from VBScript, much easier than in C++, although that's my preferred option
Steve S
Developer for hire!
|
|
|
|
|
Thank you very much for your information. I really appreciate your help.
Good luck
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I lost a windows explorer command file which is for toggle desktop!I got the script of it but don't know how to generate one WEC file. In addition what the language standard inside WEC file? Can I put more in it?
|
|
|
|
|
Where can I download Windows 98 Start Up disk?
thanks.
|
|
|
|
|
Hi,
Just look at www.bootdisk.com
With friendly greetings,
Yepper65
|
|
|
|
|
Hi everyone,
I'm trying to set up a telnet server for our internal use on a Windows 2003 Server, and can't make it work. I have enabled and started the Telnet service, as well as the Secondary Logon service, both are running, the user account in question is a member of Telnet Clients group.
But it still doesn't work unless the user is also a member of the Administrators group (Power Users membership won't help). I've read somewhere that the user must also be allowed to log on locally, so I have added this particular user to the list of those allowed to log on locally, but still it doesn't work unless the user account is a member of Administrator.
Any ideas?
Thanks in advance,
Rado
Radoslav Bielik
http://www.neomyz.com/poll [^] - Get your own web poll
http://www.neomyz.com/games [^] - Add a small game to your website
|
|
|
|
|
So the server works fine, you are having a permissions problem with a certain user then correct?
My name is Maximus Decimus Meridius, commander of the Armies of the North, General of the Felix Legions, loyal servant to the true emperor, Marcus Aurelius. Father to a murdered son, husband to a murdered wife. And I will update my website, in this life or the next.
Code-frog System Architects, Inc.
|
|
|
|
|
Are there any keyvalues in windows registry that is same for all usbcams but different for usbscanner? Which key values change when i connect and disconnect the usb devices?
|
|
|
|
|
Go to http://www.systernals.com and download the regmon application.
My name is Maximus Decimus Meridius, commander of the Armies of the North, General of the Felix Legions, loyal servant to the true emperor, Marcus Aurelius. Father to a murdered son, husband to a murdered wife. And I will update my website, in this life or the next.
Code-frog System Architects, Inc.
|
|
|
|
|
I am currently trying to learn assembl. I haven't started yet, nor written one lien of it. I know how both a processor and memory works, an I want to write in that language. Is assembly that language. A processor only has about 16 commands, I want to write in that language, and not need an OS. Of course the OS to test and to program is almost impossible to be without, but how do I do it.
Thanks for any help given.
|
|
|
|
|
Try to read this book[^]. It will teach you from the beginning.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Are you talking about Intel/AMD processors or something simpler, like PIC chips?
I've written assembler routines for both, and the PIC is much simpler to learn, there are fewer instructions, although of course you need a PC of some sort to program the PICs.
Steve S
Developer for hire!
|
|
|
|
|
Is the palm emulator consists coding platform as well similar like GoDB software?
mijan
|
|
|
|
|
mijan wrote:
Is the palm emulator consists coding platform as well similar like GoDB software?
What do you mean? You mean the coding editor or the programming language?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
When I run the setup on Windows Server 2003 (for SBS edition) it tells me it isn't supported because it is less than SQL Server 2000 SP2. I've installed it before so I knew it was coming. Previously I have just ignored that message, and installed the SP straight afterwards.
Even the official workaround states this: http://support.microsoft.com/default.aspx?scid=kb;en-us;329329[^]
Yet this time when the setup loads, before the wizard shows I get this message:
---------------------------
Setup
---------------------------
Microsoft SQL Server 2000 Developer Edition server component is not supported on this operating system. Only client components will be available for installation.
---------------------------
OK
---------------------------
So how do I install the server in order to apply the SP3? Only the client tools option is enabled in the setup.
|
|
|
|
|
David Wulff wrote:
So how do I install the server in order to apply the SP3?
Find the CD Office XP professional edition. And try to find the folder MSDE2000 . Then run the setup file. Then you will be able to confige the database as database server.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|