Sign in to follow this  
Followers 0
lyledg

Parentheses question

3 posts in this topic

Guys

I am trying to write the output of a input box variable to a batch file.

Problem is that the output being written is a path, which means it should be in "". But I am unsure how to get the output in the correct format:

The line I am using is as follows:

FileWriteLine($file, "Robocopy " & Guiread($Src) & " " & Guiread($Dst) & " " & Guiread($Files) & " " & $MIRval & $SBDIRval & $VBLval & $NPval & $SECval & $LOGval )

How do I encompass the $SRC abd $DST variable in "" so that robocopy reads the values correctly from a batch file?

Cheers

Lyle

Share this post


Link to post
Share on other sites



FileWriteLine($file, 'Robocopy "' & Guiread($Src) & '" "' & Guiread($Dst) & '" ' & Guiread($Files) & ' ' & $MIRval & $SBDIRval & $VBLval & $NPval & $SECval & $LOGval )


Who else would I be?

Share this post


Link to post
Share on other sites

Thanks alot guys, worked like a charm..much appreciated!

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  
Followers 0