Member Login
Search
Jump to a Date
Sponsored Communities
Cool stuff
Neat Stuff

Visit our shop for nerds in control lifestyle products.
Thermal Overload
The threads that wouldn't die...
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
Fortune
When I was a boy I was told that anybody could become President. Now
I'm beginning to believe it.
-- Clarence Darrow
I'm beginning to believe it.
-- Clarence Darrow
RSS Feed
www.control.com/rss/
To get a personalized feed, become a member at no cost.
I have a problem for some reason with Vbhide on one XP computer. I have some code running on 30 XP machines and it runs fine, but one XP machine doesn’t want to hide the window when executed.
The code below is an example of the line of code that opens the window and does a task. (Dir is just an example.)
Shell("command.com /c dir", vbhide)
On the 30 computers it works on, this code executes behind the scenes and you don't see anything. On the one XP you see the command prompt window open, the task runs then closes when finished.
Any ideas what could be causing Vbhide not to work on that one computer? System setting, registry values, anything...
Thanks,
G8oR
The code below is an example of the line of code that opens the window and does a task. (Dir is just an example.)
Shell("command.com /c dir", vbhide)
On the 30 computers it works on, this code executes behind the scenes and you don't see anything. On the one XP you see the command prompt window open, the task runs then closes when finished.
Any ideas what could be causing Vbhide not to work on that one computer? System setting, registry values, anything...
Thanks,
G8oR
Maybe it's a plot by secret minions at Microsoft to drive you mad so they can control your brain.
Barring anything that dramatic, is the code running as a service? And does the service have permission to interact with the desktop? Or is it user space code?
MB
--
Michael Batchelor
www.IndustrialInformatics.com
Barring anything that dramatic, is the code running as a service? And does the service have permission to interact with the desktop? Or is it user space code?
MB
--
Michael Batchelor
www.IndustrialInformatics.com
The actual code opens ftp.exe, but that really doesn't matter because the below example acts the same. The command window displays instead of hiding.
Actually, none of the window styles produce any effect on this one machine for the below code examples. (vbMinimizedFocus, vbMaximizedFocus, ect)
Shell("command.com /c dir", vbhide)
Actual code:
Shell("command.com /c ftp -s:ftpmsg -i -n")
Thanks for any input.
G8or
Actually, none of the window styles produce any effect on this one machine for the below code examples. (vbMinimizedFocus, vbMaximizedFocus, ect)
Shell("command.com /c dir", vbhide)
Actual code:
Shell("command.com /c ftp -s:ftpmsg -i -n")
Thanks for any input.
G8or
From Control Engineering magazine...
Related articles from Control
Engineering magazine- Rockwell Automation releases VantagePoint for plant data visualization
- Fast HMI application development software
- Control system and instrumentation design software
- Off-line robotics programming software with 3D simulation
- HMIs: Rugged, instrument-grade-glass on projected capacitive touchscreens
- SCADA cyber security lessons from the movie ‘Eagle Eye’
- New keyboard for extreme conditions
- Annunciator with optional integrated event recorder
- 14 new high-performance USB data acquisition devices
- New cyber security blog tackles DCS, SCADA vulnerabilities
Above articles copyright 2008 Reed Business Information.
Subject to its Terms of Use.
Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Patronize our advertisers!




