Is it possible to run .vbs scripts from cmdlines?
#1
Posted 30 July 2004 - 02:33 AM
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)?
#2
Posted 30 July 2004 - 03:07 AM
start /wait file.vbs
that should work..
regards
#4
Posted 30 July 2004 - 06:06 AM
MCT, on Jul 30 2004, 02:37 PM, said:
that should work..
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
#5
Posted 30 July 2004 - 07:08 AM
start /wait %sysdrive%/install/winamp/winamp.js
But using AutoIt is better when writting a making scripts if you need help on how to write the scripts with AutoIt let me know.
#6
Posted 30 July 2004 - 07:13 AM
wscript ..\Programmes\scripts\cmdlines.js
where cmdlines.txt is in <CD>\$OEM$\cmdlines.txt
cmdlines.js is in <CD>\Programmes\scripts\cmdlines.js
#8
Posted 30 July 2004 - 08:59 AM
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.
#9
Posted 30 July 2004 - 10:26 AM
then all u need 2 do.. is in a batch file.. say u are wanting 2 install ati control panel
IF EXIST "%Windir%\System32\atifile.exe" GOTO ATICP GOTO END :ATICP start /wait %systemdrive%\drivers\ati\cp\file.exe /switch GOTO END :END
same code can be modified 2 work with autoit too
hope this is of some assistance
#10
Posted 30 July 2004 - 10:44 AM
MCT, on Jul 30 2004, 05:26 PM, said:
then all u need 2 do.. is in a batch file.. say u are wanting 2 install ati control panel
IF EXIST "%Windir%\System32\atifile.exe" GOTO ATICP GOTO END :ATICP start /wait %systemdrive%\drivers\ati\cp\file.exe /switch GOTO END :END
same code can be modified 2 work with autoit too
hope this is of some assistance
I'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).
#11
Posted 30 July 2004 - 10:47 AM
but i would try autoit or the above method as they are pretty much straight forward
regards
#12
Posted 30 July 2004 - 10:50 AM
#13
Posted 30 July 2004 - 07:12 PM
Quote
Theres 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.
#14
Posted 31 July 2004 - 02:36 AM
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).
#15
Posted 31 July 2004 - 03:31 AM
]Bonkers[
#16
Posted 31 July 2004 - 05:02 AM
Quote
Why? read the language specification, \ isn't important to vbs, it doesn't use c style escapes. Perhaps you'd be better of writing it in javascript if you're used to that.
#17
Posted 31 July 2004 - 05:13 AM
Thanks again
PS. Besides the reference page on msdn, can you recommend any pages about vbs' thats good to keep in reach for reference and such.
#18
Posted 31 July 2004 - 05:53 AM
- ← 2 Particular Odd Problems after Install
- Unattended Windows 2000/XP/2003
- Change Paging File to specified drive automaticall →



Help
Back to top









