Heavy Wizardry? Or Simple Skript-Kiddiotry? :P :D

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Einhander Sn0m4n
Insane Railgunner
Posts: 18630
Joined: 2002-10-01 05:51am
Location: Louisiana... or Dagobah. You know, where Yoda lives.

Heavy Wizardry? Or Simple Skript-Kiddiotry? :P :D

Post by Einhander Sn0m4n »

I went to C:\WINNT\Web and edited the standard.htt template to disable Explorer's Preview function for sounds and videos as a workaround for Explorer.exe's annoying habit of crashing when it tries to preview certain MP3s and movie files. Here's what I did:

Code: Select all

        function IsMovieFile(ext) {
            return false;
            var types = ",asf,avi,m1v,mov,mp2,mpa,mpe,mpeg,mpg,mpv2,qt,asx,";
            var temp = ","+ext+",";
            return types.indexOf(temp) > -1;
        }

        function IsSoundFile(ext) {
            return false;
            var types = ",aif,aiff,au,mid,midi,rmi,snd,wav,mp3,m3u,wma,";
            var temp = ","+ext+",";
            return types.indexOf(temp) > -1;
        }
I simply inserted |return false;| lines right after the |function IsMovieFile(ext) {| and |function IsSoundFile(ext) {| lines. Elegant, isn't it? Then I saved it, and expect to have all MP3 and movie preview functions effectively disabled. Presto, I refreshed a folder and clicked on a known 'crash' mp3. No crash.

I forgot where I saw this at (Nevermind, I found it), but it worked wonders.

I R -+31337+- H4x0r!!111 :shock: :twisted: :twisted: :twisted: :roll: :roll: :roll:

And yes, I hand-coded the uBB code in this post too :P

EDIT: Night guys, I'm goin ta bed :) Happy Hacking! :D
Image Image
User avatar
Sarevok
The Fearless One
Posts: 10681
Joined: 2002-12-24 07:29am
Location: The Covenants last and final line of defense

Post by Sarevok »

You may want to try learning to program the Windows shell. That would give you much greater control over Windows.
I have to tell you something everything I wrote above is a lie.
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

Can't this be done by editing the filetypes in REGEDIT?
Image
User avatar
Einhander Sn0m4n
Insane Railgunner
Posts: 18630
Joined: 2002-10-01 05:51am
Location: Louisiana... or Dagobah. You know, where Yoda lives.

Post by Einhander Sn0m4n »

Slartibartfast wrote:Can't this be done by editing the filetypes in REGEDIT?
Meh, probly. Knowing Windows, there are at least ten different ways of doing anything you want to do. Windows is quite pliable actually...
Image Image
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post by Pu-239 »

Einhander Sn0m4n wrote:
Slartibartfast wrote:Can't this be done by editing the filetypes in REGEDIT?
Meh, probly. Knowing Windows, there are at least ten different ways of doing anything you want to do. Windows is quite pliable actually...
But no documentation... plus too many ways to do something means more difficult to .

I hate VBasic syntax.
then again, bash is worse. However, one can do more with it by utilizing external command line programs, which windows seems to lack except for the basics. Can I script something to automatically fetch my mail every so often, and still use my client of choice? Is it possible to build a web server using windows scripting languages (not that I would do this, but a nice example would be the apt-proxy server). Can you make scripts to automatically update/maintain/blah whatever remote computers you have?

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Pu-239 wrote:then again, bash is worse. However, one can do more with it by utilizing external command line programs, which windows seems to lack except for the basics. Can I script something to automatically fetch my mail every so often, and still use my client of choice? Is it possible to build a web server using windows scripting languages (not that I would do this, but a nice example would be the apt-proxy server). Can you make scripts to automatically update/maintain/blah whatever remote computers you have?
1. Probably not, depending on how you set things up.
2. Well, if you consider .NET a scripting language you probably could attempt it Apt-proxy is hardly a 'real' webserver anyways.
3. Yes.
Post Reply