Jump to content

Problem with double quote appending


dirtmike
 Share

Recommended Posts

First off

$drive = "c:\"
$someExe = "some.exe"
$file = "my test.file"

$temp = $someExe & " " & '"' & $drive & $file & '"'
RunWait($temp)

The last "(double quote) does not get appended!

What I get in $temp is c:\some.exe "c:\my test.file when it should be c:\some.exe "c:\my test.file"

Can anyone clarify?

Thanks,

Mike

Edited by dirtmike
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...