M
Matthew Prieto
Here is what I am trying to accomplish.
I've created a program that will determine what boxes are checked then based
on those checkboxes input it associated line into a batch file.
Below is the script I am working with.
Private Sub cmdGo_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdGo.Click
FileOpen(1, "install.bat", OpenMode.Output)
If rdoOfficeSta.Checked = True Then
WriteLine(1, "\\Filesrv\Apps\Office 2003 Professional\Setup.exe"
/settings "\\filesrv\apps\Office 2003 Professsional\Files\Setup\all.ini")
End If
The issue I am having is that the WriteLine(1, " area. It doesn't enjoy the
" after the Setup.exe. It associates that with the end of the parameter.
When I am done I want this file to inport into a batch file the following.
"\\Filesrv\Apps\Office 2003 Professional\Setup.exe" /settings
"\\filesrv\apps\Office 2003 Professsional\Files\Setup\all.ini"
However, I'm getting this:
"'\\Filesrv\Apps\Office 2003 Professional\Setup.exe' /settings
'\\filesrv\apps\Office 2003 Professsional\Files\Setup\all.ini'"
It adds the single quotes and that will not work in the batch file. How can
I make it so it understand the entire thing and not just from the first
quote to the second one.
HELP!!!
Matthew
I've created a program that will determine what boxes are checked then based
on those checkboxes input it associated line into a batch file.
Below is the script I am working with.
Private Sub cmdGo_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdGo.Click
FileOpen(1, "install.bat", OpenMode.Output)
If rdoOfficeSta.Checked = True Then
WriteLine(1, "\\Filesrv\Apps\Office 2003 Professional\Setup.exe"
/settings "\\filesrv\apps\Office 2003 Professsional\Files\Setup\all.ini")
End If
The issue I am having is that the WriteLine(1, " area. It doesn't enjoy the
" after the Setup.exe. It associates that with the end of the parameter.
When I am done I want this file to inport into a batch file the following.
"\\Filesrv\Apps\Office 2003 Professional\Setup.exe" /settings
"\\filesrv\apps\Office 2003 Professsional\Files\Setup\all.ini"
However, I'm getting this:
"'\\Filesrv\Apps\Office 2003 Professional\Setup.exe' /settings
'\\filesrv\apps\Office 2003 Professsional\Files\Setup\all.ini'"
It adds the single quotes and that will not work in the batch file. How can
I make it so it understand the entire thing and not just from the first
quote to the second one.
HELP!!!
Matthew