Jump to content

Gosh's Unattended Tips And Tricks


Recommended Posts


Please don't just add in posts to an existing thread......

Only replies to a previous post are normally posted in a running topic (such as this).

You can start a new topic and post your batch-file - that way lots more people will see it, otherwise, most will simply skip reading a thread that they've already seen.

Link to comment
Share on other sites

Nice work..

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

)

Link to comment
Share on other sites

  • 5 weeks later...

sorry to bump into this rather already old topic, but I'd like to ask gosh something about Trick #3: Associate file types...

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

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? :huh:

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? :rolleyes:

Link to comment
Share on other sites

i wanted to use the 'association file types' method too, for my Unattended XP CD.

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.

:huh:

Edited by r0sWell
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...