Gosh's Unattended Tips And Tricks
#101
Posted 18 August 2004 - 09:51 AM
To save some typing you might change your batch to something like this loop for finding your source.
FOR %%I IN (D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) DO (
IF EXIST %%I:\WIN51IP.SP1 SET CDROM=%%I:
)
Same for:
FOR %%I IN(.blt,.cue,.diz,.eml,.iss,ETC,ETC...) DO (
ASSOC %%I=txtfile
)
#102
Posted 17 September 2004 - 04:35 AM
Quote
assoc .blt=txtfile
assoc .cue=txtfile
assoc .diz=txtfile
assoc .eml=txtfile
assoc .iss=txtfile
assoc .log=txtfile
assoc .md5=txtfile
assoc .m3u=txtfile
assoc .nbi=txtfile
assoc .nfo=txtfile
assoc .nt=txtfile
assoc .pif=txtfile
assoc .sam=txtfile
assoc .sif=txtfile
assoc .sfv=txtfile
assoc *=txtfile
What do you exactly mean by...REM ftype will also show all registered types...?
and the last one: assoc *=txtfile...doens't this mean all other files will be associated to a txtfile?
then...if I put your assoc commands in "filetype.cmd" for instance and I link that in "RunOnceEx.cmd" like this:
ECHO. ECHO Associating File Types start /wait %systemdrive%\Install\filetype.cmd
Whould that work?
#103
Posted 17 September 2004 - 09:13 AM
in fact it simply doesn't work at all, for me
here is what i use :
assoc.bat is launched at the begining of my RunOnceEx.cmd :
CLS @echo off REM ftype will also show all registered types assoc .log=txtfile assoc .nfo=txtfile assoc .sfv=txtfile assoc .sif=txtfile assoc .srt=txtfile assoc .sub=txtfile assoc *=txtfile EXIT
part from runonceex.cmd :
REG ADD %KEY%\001 /V 2 /D "%systemdrive%\Install\assoc.bat" /f
i suppose the method can work, my knowlegde in unattended cd creation is not enough advanced, but in my case it has no effect.
This post has been edited by r0sWell: 17 September 2004 - 10:12 AM
#105
Posted 17 September 2004 - 10:12 AM
Dahi, on Sep 17 2004, 04:43 PM, said:
oh, i made a type error, i edit my previous post.
of course, it's assoc.bat and not assoc.cmd which is called in runonceex.cmd
sorry
#106
Posted 17 September 2004 - 12:22 PM
So, can someone please tell me if the following CODE whould work?
RunOnceEx.cmd
ECHO. ECHO Associating File Types start /wait %systemdrive%\Install\filetype.bat
filetyp.bat
REM ftype will also show all registered types assoc .blt=txtfile assoc .cue=txtfile assoc .diz=txtfile assoc .eml=txtfile assoc .iss=txtfile assoc .log=txtfile assoc .md5=txtfile assoc .m3u=txtfile assoc .nbi=txtfile assoc .nfo=txtfile assoc .nt=txtfile assoc .pif=txtfile assoc .sam=txtfile assoc .sif=txtfile assoc .sfv=txtfile
#107
Posted 17 September 2004 - 12:52 PM
it removes all the lines/characters in the DOS window, so it appears like a new DOS window.
i always write it, but it's not really necessary.
#108
Posted 17 September 2004 - 01:01 PM
#109
Posted 17 September 2004 - 04:30 PM
not topic related?
I guess if you look at the first page of this thread you most certainly see things about filetyp associations!!!
but oh well...I'll post a new one
#110
Posted 18 September 2004 - 03:35 AM
CoRoNe, on Sep 17 2004, 11:30 PM, said:
not topic related?
I guess if you look at the first page of this thread you most certainly see things about filetyp associations!!!
but oh well...I'll post a new one
not the same function !
CLS : clear the window's screen.
@echo off : means that only the texts after "echo" will be displayed, but not the actiions.
@echo on : means all texts will be displayed, text after "echo" but tha actions executed too.
make a test u'll see
@prathapml:
yes, that's true that the topic is quite old.
it could be good to open new topic for new questions
#111
Posted 26 March 2006 - 01:34 PM
I'm trying to troubleshoot some problems in my current instalation, some software just doesn't install, don't know why. I use SFX archives, called from RunOnce.cmd (lanched from [GuiRunOnce] in WinNt.sif), that automaticly install all the software. Th problem is i've been trying to use Logs to determine what's causing some software not to be installed. How do you do to make the CMD files log errors and sucesses?
Or maybe they just don't have time to install, could it be?
Greetings
André Casal
This post has been edited by andregcasal: 26 March 2006 - 01:34 PM
- ← Stupid question regarding
- Unattended Windows 2000/XP/2003
- what if you have win xp pro sp2 cd already and other q's →



Help

Back to top









