Shell() Question

Hey,
I was wondering if anyone knew how to run program such as sig2dat from VB using shell().  One example of this would be:

shell("sig2dat:///|File: The Matrix [DivX].avi|Length: 606580736 Bytes, 592364KB|UUHash: =NU+6vO//nt1xRJWKvtxhMM2gmLA=|", vbHide)

When I try to run that I get a "File Not Found" error.  I've been able to run it using:

shell("start sig2dat:///|File: The Matrix [DivX].avi|Length: 606580736 Bytes, 592364KB|UUHash: =NU+6vO//nt1xRJWKvtxhMM2gmLA=|", vbHide)

This method worked although it was not hidden.  I was wondering if anyone could help me with this.  Thanks.

-Eric
erictridasAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

applayerCommented:
I use shell sometimes in my VB programs, and I have gotten the "File Not Found" error also.  One thing that helps is using the "ChDir" just before calling the shell function.

you could try using:

ChDir "c:\yourdirectory"

...I admit I don't know what's going on with the hidden vs. not hidden issue.  I haven't been able to get shell commands to work when they are hidden myself.


0
bukkoCommented:

What happens if you open a command window and type:

sig2dat:///|File: The Matrix [DivX].avi|Length: 606580736 Bytes, 592364KB|UUHash: =NU+6vO//nt1xRJWKvtxhMM2gmLA=|

cos that's effectively what you're doing!

Regards

bukko
0
bukkoCommented:

If you get a "file not found" It's because you're in the wrong folder.
For example, instead of:

Shell "myexe.exe"

Use

Shell "C:\fully\qualified\path\myexe.exe"

However, I'm not sure about this sig2dat thing.

Regards

bukko
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

CleanupPingCommented:
erictridas:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
0
DanRollinsCommented:
erictridas, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Save as PAQ -- No Refund.

DanRollins -- EE database cleanup volunteer
0
YensidModCommented:
Question is PAQ'd and no points refunded.

YensidMod
Community Support Moderator @Experts Exchange
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.