Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3486520
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:02:25+00:00 2026-05-18T11:02:25+00:00

I am facing a really very interesting problem with string. My code is: Dim

  • 0

I am facing a really very interesting problem with string.

My code is:

Dim stropt As String

stropt = " -i ""C:\Rajesh Prj\Video splitter\testvideo.wmv"" -start 00:00:00 -duration 00:00:10 -start 00:00:10 -duration 00:00:10 -sep -o short{000}.wmv"
'Dim strwithpara As String
'strwithpara = " -i """ + filepath + """ -start 00:00:00 -duration 00:00:10 -start 00:00:10 -duration 00:00:10 -sep -o short{000}.wmv"

System.Diagnostics.Process.Start(Environment.CurrentDirectory() + "\asfbin.exe", stropt)

with above code its working fine, but when I uncomment the middle two lines, its giving me :

error: The system cannot find the file specified

even though I am not using variable strwithpara but its generating that error in Process.Start.

But when I comment those lines (which are uncommented in code above) its working fine.
Please tell me what I am missing and also suggest to me what should I do to resolve it.

I am taking value in filepath variable from file dialog’s FileName property.

EDIT: I have also compared the values of variable stropt and strwithpara with “IF” condition and found those are same.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T11:02:25+00:00Added an answer on May 18, 2026 at 11:02 am

    Check the value of Environment.CurrentDirectory() + "\asfbin.exe" and stropt using breakpoints and see if they match what you expect

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am facing a very peculiar problem that even when I delete some rows,
I am facing a very strange problem. I have a grid and when i
When you are facing with this kind of dilemma, what do you usually do,
Possible Duplicate: iPhone CATransition adds a fade to the start and end of any
My application is using MEF to export some classes from an external assembly. These
I'm trying to buid a site with the following: VS 2010 (for the updated
I know 3D rotation is well documented on SO and many other sites, but
Is it valid in XML-RPC to have an unbounded array of elements without having
I am trying to create a function with a variant record-type parameter that allows
I have a class that is only ever accessed externally through static methods. Those

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.