July 30, 200422 yr Well topic says it all. Is it, and how?On a second note, I'm having problems installing DirectX, IE6 and QuickTime from RunOnceEx on a Windows 2000 Pro., can anybody help with that (longer description of the problem)?
July 30, 200422 yr start /wait file.vbs that should work..Not when you are paranoid about security!For example, I run this command:assoc .vbs=txtfileSo the VBscripts are not self-running anymore after that!In that case, run it this way:cscript //B "%your_path%\your_file.vbs" //NoLogo //T:600
July 30, 200422 yr I just did start /wait %sysdrive%/install/winamp/winamp.jsBut using AutoIt is better when writting a making scripts if you need help on how to write the scripts with AutoIt let me know.
July 30, 200422 yr I call a .js script from cmdlines.txt like this:wscript ..\Programmes\scripts\cmdlines.jswhere cmdlines.txt is in <CD>\$OEM$\cmdlines.txtcmdlines.js is in <CD>\Programmes\scripts\cmdlines.js
July 30, 200422 yr Author Thanks guys.I'm working on a script, that will detected the computer model and install the appropiat drivers and some custom software. The script is sorta working, having some problems with escape characters, when I try to add a string to the reg database. Does anybody know how to escape out " and \? I tried \" and \\... didnt do the job.
July 30, 200422 yr windows will install appropriate drivers..then all u need 2 do.. is in a batch file.. say u are wanting 2 install ati control panelIF EXIST "%Windir%\System32\atifile.exe" GOTO ATICPGOTO END:ATICPstart /wait %systemdrive%\drivers\ati\cp\file.exe /switchGOTO END:ENDsame code can be modified 2 work with autoit too hope this is of some assistance
July 30, 200422 yr Author windows will install appropriate drivers..then all u need 2 do.. is in a batch file.. say u are wanting 2 install ati control panelIF EXIST "%Windir%\System32\atifile.exe" GOTO ATICPGOTO END:ATICPstart /wait %systemdrive%\drivers\ati\cp\file.exe /switchGOTO END:ENDsame code can be modified 2 work with autoit too hope this is of some assistanceI'm aware of that. My script do about the same as yours do. Instead of looking for specific files, I look at the computer model.And yes, its the control panal thingies I need to install for the drivers. I also need to install some special programs depending on the computer (laptop/desktop and so on).
July 30, 200422 yr sorry i cant help with the .vbs, im fairly new 2 it myself..but i would try autoit or the above method as they are pretty much straight forward regards
July 31, 200422 yr assoc .vbs=txtfileTheres paranoia there's taking it too far. Yes that'll break the association but couldn't you just not double click the things? VBS is a useful little scripting langauge, a great many of the IIS tools are vbs scripts, you won't be able to use any of the after that little alteration. You also break VBS for any unsuspecting users on the machine who have no idea what you did. As someone who supports some relatively complicated (in my opinion anyway) scripts used to install/uninstall an open source project this sort of thing causes me major headaches with id*** users.Double quotes in vbs are "". By which i mean if you want a string to contain " you use "" , so a "a quote ""quoted text""" will be printed as a quote "quoted text"You'll soon get tired of couting up double quote characters. Sometimes its better to use "a quote " & chr(32) & "quoted text" & chr(32) for clarity, its a matter of personal preference.
July 31, 200422 yr Author Thanks AMDTWraith. Dont I need to escape out \ ?sfamonkey: Ill see what I can do. Might post my work log including my config files when I'm done with this RIS project. Got a few weird problems with some programs thou, that I'm currently trying to get going (link to another thread in the first post in this thread).
July 31, 200422 yr @egil: take a look at this thread http://www.msfn.org/board/index.php?showtopic=21316&st. I did something similiar to what you are trying to do.]Bonkers[
Create an account or sign in to comment