?
Solved

Shell() Question

Posted on 2003-03-10
6
Medium Priority
?
161 Views
Last Modified: 2010-05-01
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
0
Comment
Question by:erictridas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:applayer
ID: 8106239
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
 
LVL 8

Expert Comment

by:bukko
ID: 8106250

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
 
LVL 8

Expert Comment

by:bukko
ID: 8106306

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:CleanupPing
ID: 8900368
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
 
LVL 49

Expert Comment

by:DanRollins
ID: 9074724
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
 

Accepted Solution

by:
YensidMod earned 0 total points
ID: 9165970
Question is PAQ'd and no points refunded.

YensidMod
Community Support Moderator @Experts Exchange
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question