Results 1 to 3 of 3

Thread: Shell, No QUOTATION Marks!! Stupid....

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    2

    Angry

    I'm trying to send a command line to a program from a shell command,
    the command line is: bplay.exe "movie.avi" [-FS]

    In vb its a little hard due to there being quotation marks,
    I've tryed this and program just can't find the file,
    please!! help me correct this syntax:

    Shell (App.Path + "\" + "bplay.exe " + Chr(34) + "movie.avi" + Chr(34) + " [-fs]")

    THANKS!!


  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Do you have both the bplay.exe and the movie.avi in the same directory (App.Path)?

    In that case you might just try to make App.Path the current directory before you call the Shell statement.
    Code:
    ChDir App.Path
    Shell App.Path & "\bplay.exe ""movie.avi"" [-fs]"
    As you can see in the above example is that if you use two quetation marks you can add them in one string.

    Best regards

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    2

    Thanks

    I can't believe it, I was almost sure I tried it and it wouldn't work, but it did, thanks!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width