MSFN Forum: Gosh's Unattended Tips And Tricks - MSFN Forum

Jump to content



  • 6 Pages +
  • « First
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

Gosh's Unattended Tips And Tricks Rate Topic: ***** 1 Votes

#101 User is offline   meagain35 

  • Group: Members
  • Posts: 4
  • Joined: 18-August 04

Posted 18 August 2004 - 09:51 AM

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
)


#102 User is offline   CoRoNe 

  • Quality Tweaker
  • PipPip
  • Group: Members
  • Posts: 172
  • Joined: 17-September 04

Posted 17 September 2004 - 04:35 AM

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

Quote

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:

#103 User is offline   r0sWell 

  • Member
  • PipPip
  • Group: Members
  • Posts: 179
  • Joined: 09-June 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 September 2004 - 09:13 AM

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:

This post has been edited by r0sWell: 17 September 2004 - 10:12 AM


#104 User is offline   Dahi 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 25-November 03

Posted 17 September 2004 - 09:43 AM

Rename your batch file to assoc.bat

#105 User is offline   r0sWell 

  • Member
  • PipPip
  • Group: Members
  • Posts: 179
  • Joined: 09-June 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 September 2004 - 10:12 AM

Dahi, on Sep 17 2004, 04:43 PM, said:

Rename your batch file to assoc.bat

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 User is offline   CoRoNe 

  • Quality Tweaker
  • PipPip
  • Group: Members
  • Posts: 172
  • Joined: 17-September 04

Posted 17 September 2004 - 12:22 PM

First of all what does CLS do? And can you tell me what "REM ftype will also show all registered types" means exactly? (I'm quit the beginner with this stuff)

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 User is offline   r0sWell 

  • Member
  • PipPip
  • Group: Members
  • Posts: 179
  • Joined: 09-June 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 September 2004 - 12:52 PM

CLS means Clear Screen.
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 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 September 2004 - 01:01 PM

This is a very old thread. Please do not make posts here which are not directly related to the topic. Making a new thread for your above question will certainly get more people seeing it, and more responses.

#109 User is offline   CoRoNe 

  • Quality Tweaker
  • PipPip
  • Group: Members
  • Posts: 172
  • Joined: 17-September 04

Posted 17 September 2004 - 04:30 PM

so CLS and @echo off have the same function :huh: ...weird

not topic related? :blink: :wacko:
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 User is offline   r0sWell 

  • Member
  • PipPip
  • Group: Members
  • Posts: 179
  • Joined: 09-June 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 September 2004 - 03:35 AM

CoRoNe, on Sep 17 2004, 11:30 PM, said:

so CLS and @echo off have the same function :huh: ...weird

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 User is offline   andregcasal 

  • Amoguai
  • PipPip
  • Group: Members
  • Posts: 196
  • Joined: 25-November 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 March 2006 - 01:34 PM

Hi there!
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


Share this topic:


  • 6 Pages +
  • « First
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy