vinifera Posted October 21, 2010 Posted October 21, 2010 for some reason when used unattended installation with $OEM$ batch file for T-13 timesetting propper file associations failsimple example:for irfanview to open GIF fileASSOC .GIF=GIF.FILEFTYPE GIF.FILE="%PROGRAMFILES%\IrfanView\i_view32.exe" "%1"or PDF Xchange to open PDF'sASSOC .PDF=PDF.FileFTYPE PDF.File="%PROGRAMFILES%\PDFXChange\PDFXCView.exe" "%1"if I do it manualy (type it in cmd window) it will workbut why doesn't it do right with T-13 batch file ?i noticed in output window that "%1" doesn't get appliedbut just "" is added which I guess screws things upanyone know how to fix this things ?
johnhc Posted October 21, 2010 Posted October 21, 2010 vinifera, looks like you do not need the quotes around the %1. Help and Support (W7) shows this assoc .pl=PerlScript ftype PerlScript=perl.exe %1 %* The %* gets the parameters. Enjoy, John.
vinifera Posted October 21, 2010 Author Posted October 21, 2010 I get same result with just %1 and with %1 %*(no quotes on both cases)
johnhc Posted October 21, 2010 Posted October 21, 2010 I get same result with just %1 and with %1 %*(no quotes on both cases)vinifera, the batch file is using the %1 as a parameter. Use %%1. You can test this simply by running the batch file in a command prompt. Enjoy, John.
vinifera Posted October 21, 2010 Author Posted October 21, 2010 (edited) hehe believe it or not I did some sniffing and found that exact answer here on MSFN ()btw quotes are necessary around %'s, ive noticed on PDF file it doesn't load in PDF viewer without themstill thanks for answer, apreciate it Edited October 21, 2010 by vinifera
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now