troubleshooting Question

VB.NET - DTSRUN.exe "The system cannont find file specified"

Avatar of ScottG_Work
ScottG_WorkFlag for United States of America asked on
Visual Basic.NET
5 Comments1 Solution424 ViewsLast Modified:

I am trying to use the following code to execute a DTS Package on the actual SQL Server machine:
        Dim strDTS As String
         strDTS = "DTSRUN.exe /S " & Chr(34) & "Server" & Chr(34) & " /U " & Chr(34) & "User" & Chr(34) & " /P " & Chr _
         (34) & "pass" & Chr(34) & " /N " & Chr(34) & "PKG Name" & Chr(34)


        Catch ex As Exception
        End Try
I recevie the error:
     "The system cannont find file specified"

I cut and paste the output from within into the command line and it executes perfectly.  Any ideas/help?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros