Jump to content
Sign in to follow this  
dirtmike

Problem with double quote appending

Recommended Posts

dirtmike

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

Share this post


Link to post
Share on other sites
Inverted

MsgBox (4096, '"','"')

Seems fine to me ...

Use MsgBox in your script to see the contents.

Edited by Inverted

Share this post


Link to post
Share on other sites
dirtmike

Problem solved...

I'm using the autoit debugger! It isn't showing the correct value in the watch window!!

Share this post


Link to post
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
Sign in to follow this  

×