|
maneeshbakshi wrote: I am lookin the for the code to check if my computer is idle for say 5 minutes
http://mastercluster.com/mcDetectIdle.html[^]
maneeshbakshi wrote: it should open internet explorer to a specific webpage or if IE is already open redirect it to the specified webpage
in vb.net use the below code:
System.Diagnostics.Process.Start("www.codeproject.com")
|
|
|
|
|
Can someone explain me why in the windows header file resource.h not only the (e.g) MENU name is defined but is also given a ID number
eg.
#define IDR_MENU 101
That is: why is #define IDR_MENU
not sufficient: with this the MENU name will be defined en then it can be used in the .cpp file as well as in the resource file .......
|
|
|
|
|
Top-level resources can be identified either by number or using a string. Controls on a dialog must always have a numeric identifier. The resource (.rc) file is run through a preprocessor, the same as a .cpp file is. The preprocessor substitutes tokens for their definitions, so any use of IDR_MENU is replaced by the number 101.
Any resources whose identifier is still a string after the preprocessor pass will end up in the final binary using that string, so if you deleted the IDR_MENU definition from resource.h entirely, you would then have to use the versions of resource loading functions that accept a string argument. The core Win32 API only offers resource-loading functions that accept a string argument; to use a numeric identifier you must use the MAKEINTRESOURCE macro.
If you just had #define IDR_MENU that would tell the preprocessor - both the resource file preprocessor and the C++ preprocessor - to replace all instances of IDR_MENU with an empty string. That would not compile.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I'm a SysAdmin at a small company here in Minneapolis. I have written a VBScript that automates some FTP functions and does some file housekeeping after the downloaded files are processed by the ERP EDI system. The script runs on a W2K Server.
I found the XYNTService (codeproject.com/system/XYNTService.asp) and it would be the perfect fail safe to restart the script in case it fails when I'm not around to read the email notification I set up in the event the script fails.
Small problem - it doesn't seem to like .vbs's. I've tested it with executables and it works fine.
Anybody got any thought on this?
BD
|
|
|
|
|
After skimming the XYNTService article, I think that it only runs executables. Perhaps you can change the call to your VBS file to "CMD.EXE /Q <your vbs file>" and have the script run from the shell.
I hope that works for you....
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Great idea Curtis but no soap. Maybe I'll try and complie the vbs into an exe and see waht happens.
BD
|
|
|
|
|
Just FYI if anybody's interested - - - -
Well, I did compile the VBS into an EXE - works great when executed directly. When trying to kick it off using the XYNTService, though, it runs but doesn't perform the FTP functions at all. Now, when the EXE is executed directly it starts the wscript.exe process which is the WSH. When started by the XYNTService, the executable name shows up in the Task Manager (FTPTEST.exe) and the WSH is not called.
BD
|
|
|
|
|
Sorry that my idea didn't work. I'm glad that you found more than one solution to your problem.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Curtis S. wrote: After skimming the XYNTService article, I think that it only runs executables.
It runs both .exe and .bat files. To run a script file, you enter the following in the XYNTService.ini file:
...
CommandLine = c:\winnt\system32\cscript.exe c:\MyFolder\MyFile.vbs
...
Good luck.
My articles and software tools
|
|
|
|
|
Thank you so much for the tip Xiangyang. Turns out I just figured out that if I run the Script from a batch file it works too.
CommandLine = c:\XYNT\runvbs.bat
runvbs.bat . . .
c:
test.vbs
exit
I really appreciate your reply to this problem . .it was sorta unexpected to get help right from the author! This has solved a major headache for me!
Take care.
BD
|
|
|
|
|
|
Liu,
Thanks for chiming in on the subject. You write neat/nice/cool stuff.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
From your profile:
"Though educated as a mathematician with a penchant for complex analysis ..."
Small world, in my "previous" life, I published several research papers in complex analysis and got a Ph.D. in this area.
Curtis S. wrote: You write neat/nice/cool stuff.
So do you.
My articles and software tools
|
|
|
|
|
Xiangyang Liu wrote: Small world, in my "previous" life, I published several research papers in complex analysis and got a Ph.D. in this area. Well, it's great to meet another member of that select fraternity of advanced mathematics! Luckily, I have the opportunity to work with a brilliant guy at one of the local universities who has come up with a conformal camera based on FFT and convolutions which, ultimately, finds its way into the complex plane. Fun, fun, fun, fun, fun.
And, thank you for the compliment.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
I have created a user account on my collegues system and i want to log on to his system using that specific user name. However when i right '\\<collegues system="" name="">' in the RUN box, it directly opens the shared folders on his system. Please suggest.
Ashu sharma
|
|
|
|
|
Open a command prompt and type:
net use \\<systemname>\ipc$ /user:<useraccount>
Wout Louwers
|
|
|
|
|
|
|
So, what's like the barebone basic hardware requirement to setup MSCS? I been reading books/articles. In addition to both machine having to be exact replica, and that all hardware be from HCL (Hardware compatibility list), you also need to buy SCII controller x2 (each node), NIC x2 (each node) and shared disk setsx2, and 4-8GB of RAM!
Just wondering, if I can get by with 1 GB? Or would MSCS simply not run with less than 4GB RAM? Is this a requirement? Or just suggestion? We just need a testing environment.
Thanks.
|
|
|
|
|
Basically, in a simple two-node cluster used to achieve high availability (rather than scale-out) each node should have enough hardware capacity to manage the entire load - because, after all, in a situation where one node has failed, the other will be taking the entire load. If 1GB of memory is sufficient for your application I would expect that would be fine.
Bear in mind that Cluster Service is for fail-over support for applications that require a local data store, such as SQL Server or Exchange. In general, only one node can access that data store at a time - be the 'Active' node (Exchange supports an Active/Active mode on a two-node cluster but few people recommend it). If you just want to scale out an application, look into Network Load Balancing rather than clustering.
The reasons for the hardware: the shared disk set is used so that both nodes can get access to the shared data - it wouldn't be much use if the data (e.g. SQL database) was stored on the local hard disks of one of the nodes, and that node failed. One disk is used as the 'quorum disk' which is used to store shared cluster state - it is recommended that this is an entirely separate disk. The additional SCSI controller is used to access a shared SCSI disk array, although you can use more expensive options such as a SAN using FibreChannel, and I believe iSCSI (SCSI commands over an IP link) is now supported. For any large scale Windows deployment it's recommended that you use SCSI for the local disks too.
Each node should normally have a private network adapter, for communicating with the other node(s) in the cluster, as well as a public network adapter for serving clients.
That's what I've picked up from a little reading on the subject and playing with a cluster of virtual machines using Virtual Server. Here's[^] a guide from sql-server-performance.com, and here's[^] the one I followed, from Microsoft's TechNet site.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi
can anyone suggest me some sites for pSOS tutorial.
I'll be highly greatful to ur help.
thanks.
|
|
|
|
|
|
Are you talking about Provably Secure Operating System[^]? It's amazing what a little Google search will come up with.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
I'm pretty sure he's talking about Wind River's pSOS(ystem)[^].
I don't know any more about it than that it exists, though.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|