VBhide not hiding

G

Thread Starter

G8oR

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
 
M

Michael Batchelor

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
 
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
 
Thread starter Similar threads Forum Replies Date
B General Automation Chat 2
Similar threads
(VBA) Userform1 Hiding
Top