Page 1 of 1 1
Topic Options
#11061 - 2001-08-02 12:33 AM Changing default File Types
Ghost Offline
Starting to like KiXtart

Registered: 2000-09-14
Posts: 171
Here's an interesting one for you chaps.

I have a large number of computers which have been used by the students, installing software and changing the files types for files.

Is there any way of editing these through Kix?

Cheers

_________________________
Who are you? Who slips into my robot body and whispers to my ghost?

Top
#11062 - 2001-08-02 06:16 AM Re: Changing default File Types
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Ghost

Win9x or WinNT ?

-Shawn

Top
#11063 - 2001-08-06 11:11 AM Re: Changing default File Types
Ghost Offline
Starting to like KiXtart

Registered: 2000-09-14
Posts: 171
win9x

_________________________
Who are you? Who slips into my robot body and whispers to my ghost?

Top
#11064 - 2001-08-07 12:00 AM Re: Changing default File Types
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
on nt you can directly edit them trough reg-keys under HKEY_CLASSES_ROOT
there is for extension a subkey named ".ext" where ext is the file-extension there is also for example html-files a subkey named "htmlFile".
I do not have a win9x machine here so can't check but you can check it by running regedit.
_________________________
!

download KiXnet

Top
#11065 - 2001-08-07 11:14 AM Re: Changing default File Types
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Hi Ghost,

How about using Ghost?

Binary Research (Oops, I mean Symantec Ghost) or other such programs.

Using Altiris you can rebuild the entire classroom of 100, 500, or 1,000 computers over the Network in 15 minutes or so.

If you only want to fix the file extensions, then yes. I would export the ones you want as normal, then import them back in.

This code is for WinPopUp, but you can modify the code for your purposes.

code:
IF @INWIN = 2		; Windows 9x systems
$sound = ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Popup", "Sound")
$ontop = ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Popup", "AlwaysOnTop")
$max = ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Popup", "MaxOnMsgRcv")
$multi = ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Popup", "MultiUserWarn")
$Set_WinPopUp = "%COMSPEC% /C REGEDIT /S %WINDIR%\POPUP.REG >nul"

IF (Exist("%windir%\popup.reg") = 0) ; popup.reg file not found
COPY "\\your_server_location\popup.reg" "%windir%\popup.reg"
ENDIF
IF $ontop <> "12124161" ;Setting is off
SHELL $Set_WinPopUp
?"ERROR @ERROR: @SERROR"
ENDIF
IF (EXIST("%WINDIR%\WINPOPUP.EXE")= 1)
SHELL "start /m %WINDIR%\WINPOPUP.EXE"
ENDIF
ENDIF


Here is the post it came from: http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=002620

Top
#11066 - 2001-10-24 11:32 PM Re: Changing default File Types
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Is your problem solved?
greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 267 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.059 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org