* Lars Reinecke <[EMAIL PROTECTED]> [2006-05-09 12:10]:
> How do I write e.g. a copy statement that needs parameters containing
> space characters? When I am working with the prompt I can use quotation
> marks, but here I need them to tell Unattended that it is one single
> statement (otherwise Unattended would execute 'copy' without any
> parameters and then the source file etc) 
> 
> I used to work around with constants like %ALLUSERSPROFILE% and
> %PROGRAMFILES% and I also worked around when I had a file name
> containing space characters by using the 8-character file name. But now
> I have a subdirectory containing a space character...

I usually use \" with environment variables:
todo.pl "\"%ProgramFiles%\7-Zip\7z.exe\" x -o\"%ProgramFiles%\"
%Z%\packages\dsfp\dsfp.exe"

Does this fail for names with actual spaces in it? Maybe using \" twice
would help? I believe todo.pl commands are processed like this:
- command executes the todo.pl in a batch file, doesn't touch everything
  between quotes, but probably strips the outer quotes.
- todo.pl expands escapes (eg. \") and passes the string to a new cmd
  instance
- the new cmd instance executes it just like every other batch command. 
Please correct me if I'm wrong.

If everything fails, you can always call a batch file which executes the
command without todo.pl, eg:
todo.pl ".ignore-err 3 dsfp-install.bat"
dsfp-install.bat:
cd "%ProgramFiles%\DirectShow FilterPack"
[...]

Alson


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to