Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Search

Jump to a Date

Sponsored Communities
Cool stuff
Select a topic of interest:
...and press:
Neat Stuff
Control.com Stuff

Visit our shop for nerds in control lifestyle products.

Fortune
When I was a boy I was told that anybody could become President. Now
I'm beginning to believe it.
-- Clarence Darrow
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
advertisement
from the Automation List department...
VBhide not hiding
Programming languages. topic
Posted by G8oR on 8 July, 2008 - 11:17 pm
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


Posted by Michael Batchelor on 10 July, 2008 - 1:02 am
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


Posted by G8or on 12 July, 2008 - 12:40 am
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

From Control Engineering magazine...
Related articles from Control Engineering magazine
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.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.

Internet Explorer 6.0 Fix

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!