lyledg Posted November 25, 2004 Posted November 25, 2004 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
this-is-me Posted November 25, 2004 Posted November 25, 2004 FileWriteLine($file, 'Robocopy "' & Guiread($Src) & '" "' & Guiread($Dst) & '" ' & Guiread($Files) & ' ' & $MIRval & $SBDIRval & $VBLval & $NPval & $SECval & $LOGval ) Who else would I be?
lyledg Posted November 25, 2004 Author Posted November 25, 2004 Thanks alot guys, worked like a charm..much appreciated!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now