Added: 3 years ago
From: elisha054
Views: 16,631
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (100)

Sign In or Sign Up now to post a comment!
  • i understanded how to open a program, but what is the script for closing a program?

  • Comment removed

  • Comment removed

  • cool thanx

    

  • doesnt worked 4 me :S

  • @MrOrbil Details?

  • @elisha054 Error:Expected end of statement Code:800A0401

    What should i do?

  • do u know the code to open up another file every 5 seconds until a system restart?

  • @cypress765

    You could make a simple loop with a timer...

  • @cypress765 Above what you wanna loop type do: then below it type :loop

  • it didn't work

  • @jazzaman100 he had it zoomed in too far in and that messed-up the text. So here's what you type and how you type it :

    set WSHShell = Wscript.create Object("WScript. Shell")

    WSHShell.Run "any program.exe"

  • ty a lot friend ;)

  • hey ive made the popular mystring=(80000000) script and i want to AUTOexecute it every 20 minutes.Do u know anything about this?

  • @stamosgang Make a loop and that will open that script every 20 minutes wscript.sleep(1200000)

  • Can't open calculator.  Any advice/ideas why?

  • @DobsBomber

    try

    calc.exe instead....

  • @elisha054 Acually, I got it.  Its just calc. Thanks anyway though.

  • how do i shut down a notepad and save it

  • @frsn98 You could send keys...

    First alt+F4 Then Enter to save.

    (watch send keys video)

  • This is with a dialog box:

    x=msgbox("To open xxxx, Click Yes.",4,"")

    if x=6 then

    Set WSHShell = WScript.CreateObject ("WScript.Shell")

    WSHShell.Run "xxxx.exe"

    End if

  • it doesnt work

  • @elisha054 actully i maked a input box. x=inputbox("what program u wanna open?")

    Set WSHShell = WScript.CreateObject("WScript.­Shell")

    WSHShell.Run "" & x

  • At last it works,thanks ! :D

  • It doesn't work

  • @TheAlphaTutorials

    As in?...

  • @elisha054 like: open"firefox"

  • @chickenguy1000

    if you really want you could make a input box its a little complicated...

  • it would be eysier if u just could type open or somethin..

  • @chickenguy1000

    what do you mean?

  • @BeefyHaze if you want!

  • will telnet work on vista?

  • i think so chekc!

  • you have to enable it usualy...it's easy, just look online to find a guide.

  • its only opening programs out of 'system32' folder, the same like Start -> Run. So only 'notepad.exe', 'cmd.exe', or whatever these programs will work

  • why do i always see u comment on stuff like this like u said people stole your video like 50 times

  • so idk

  • make sure u r typing everything right

  • yes just chang the .exe to .wma

  • set a = createobject("wscript.shell")

    a.run "firefox.exe"

    just use a

    its easier to type

  • Why can't you just make a shortcut?

  • because if you watch all my videos you will see that you can make cool stuff with this

  • eh when i start it i get this:

    windows script host

    script: c:\usersblablablashit not important

    sentence: 1

    Sign: 15

    Error: syntaxerror

    Code: 800A03EA

    source: Compilatieerror microsoft VBScript

    (i translated the dutch error into englisch so some things may not be right..)

    help plz

  • make sure that you copied it word by word

  • you copied word by word?

    compare to video.

  • me?

  • cheosxtothe:

    Try.. As an example launching yahoo messenger.

    Dim wshShell

    Set wshShell = CreateObject("Wscript.Shell")

    wshShell.Run("""C:\Program Files\Yahoo!\Messenger\Yahoome­ssenger.exe""")

    Just tripe quote the path.

  • that just mean the the 15th ltr at the first row(not sentence) is wrong, the computer expects some other sign.

  • copy the code word by word!

  • Set WSHShell = WScript.CreateObject("WScript.­Shell") on first line

    WSHShell.Run "add program here.exe" on second did this help

  • and?

  • get names of .exe from task manager > Processes

  • i want to ask how to make a vbscript that can open a .scr ( the screen saver ) file ,,, thz

  • name.csr

    instead of "any program.exe)

  • this website has lists of scripts you can use with here at

    h t t p : / / vbscripts . webs . com

  • how do you find the program term ike " .exe"

  • just ask me and i will help you find it

  • can't you save it as a .bat file and replace any .exe file to cmd.exe?

  • no because it's not a batch file cut you could open up cmd with it or cmd files...

  • im getting this error at char 65, at the WSHShell.Run command, if you could please help

  • what is the error?

  • great job thanks alot

  • no problem!

  • thanks...

  • no problem!

  • nice video got any more scripts?

  • watch other videos! =]

  • doesnt work! line 1 char 15 syntax error!

  • cop it again and make sure all text is like in the video!!

  • never mind about the script that i need to fix because the script was right the program i typed in wouldn't open so i tried "sol.exe" and it works so should i put the location like C:\1\2.exe in place of any program.exe

    if u respond and get it right than i will subscribe

  • whats wrong?

  • i want to open a file but it always says "the file you specified could not be found" unless its in the same directory

    how do i open a file that's in another directory

  • put the file you want in a another directory, unless it is already their, then right click and hit "create shortcut" when the shortcut is made, right click and go to "properties" then go to the "target" string and click on it, type "control -a, then control -c, then close and delete the shortcut and then paste that into the .vbs custom execuatable script, in this case any program.exe, hope it helps.

  • ???

  • oh nevermind, im sorry. i copied it wrong, sorry!!

  • i copied the script from the description but it said there was an error on line 2 char 1

    please help and i will subscribe if you make it work

  • nasty :D kiddin

    cool

  • thx man this helped sooo much !!! here is what i did (i know im a noob)

    msgbox " Internet Explorer detected virus " ,48, " Error403 "

    Set WSHShell = WScript.CreateObject("WScript.­Shell")

    WSHShell.Run "IExplore.exe"

  • no problem.

    cute idea.

  • im going to do it at school :P

  • don't get caught!

  • i wont :P we have free access to the pc for 35 min :D

  • have fun!

  • hey, I just realized...scripts are scripts...I can run a annoying loop popup and a script that will open programs and do even more annoying stuff...that's just awesome

  • Yeah, its fun :P Keep the good work up :D

  • these scripts can be evil!!

    i'm soon hopefully going to make a video a video that will show you a new thing thats really annoying!

  • Scripts = power = controll = bye bye idiots

  • lol

  • im going to become an evil nerd genious :D

  • join the group =)

  • ok. your welcome.

  • oh ok thanks i got it working now :) btw sol.exe opens up another game for me lol( im swedish) but anyways, it doesnt open internet explorer if i type in Internet Explorer.exe, i know to open msn u have to type MSNMSGR, but i dont know the codes for other programs :(

  • internet explorer is

    iexplorer.exe

    if you want some of the names for programs ask me or use logic..

    btw your welcome

  • lol can u tell me some of the like basic ones? me + logic = no good

  • listen i don't know what you mean by the basic ones.

    try searching it on the computer and see what you get.

    or just tell me it and ill try.

  • some of the ones u use, internet, firefox, guitar hero ( LOL ) and liek word

  • cool it works

    PS for all those who don't read you click save as then click all programs then at the end of the title put .VBS

    eg VIRUS.VBS

  • how do you make something in vbs a msgbox"text"

    and you press on yes he open it you press on no he close it.

    do you know that??

  • you can also just put in this code

    @echo off

    start yourprogram.exe

  • But thats a batch program and vbscript is better (in my opinion).

  • ok so how to we find the file name sorry if i sound like a noob ;p

  • i really do no understand your question...

  • *not

  • oh right like for solatair its sol for the program, i would like to open up different programs but i dont not now the .exe file name? how can i find this?

  • Theres no real way.

    But i might now a few so ask me what you want and i could maybe help.

    Or try searching for it (on the computer).

  • hi thanks for reply good job

    wel i want to know how i can upload my video on youtube and what is benifit for rating?

    take care

  • in the top right corner theres a button that saids on it upload just click on it and follow the instructions.

    if people see that it has a high rating they will use it instead of other people videos

  • hi i want to run my cam recorder.exe file

    and also want when it opens it also

    aply f2 key

    (f2 key is start recording key of my cam recorder).. here is my cam recorder path below

    D:\MY SOFT\rec\av\avi\CamStudio

    plz reply here with complete vbs script

    hope u will reply soon thanks

  • set A = CreateObject("WScript.Shell")

    A.Run chr(34) & "D:\MY SOFT\rec\av\avi\CamStudio" & Chr(34)

    Set A = Nothing

    Set shl = CreateObject("Wscript.Shell")

    shl.SendKeys"{f2}"

    hope it works!

    tell me!

    and please rate!

  • thanks for reply elisha

    it opens my cam recorder directry

    but not opening my recorder.exe file

    how can i aid my exe file name in ur script

    i was aid recorder.exe after cam studio

    but it shows eror and also tell me how can i rate and how much u want

    thanks hop u reply

  • set A = CreateObject("WScript.Shell")

    A.Run chr(34) & "D:\MY SOFT\rec\av\avi\CamStudio\reco­rder.exe" & Chr(34)

    Set A = Nothing

    Set shl = CreateObject("Wscript.Shell")

    shl.SendKeys"{f2}"

    try this!

  • thanjs for again i tried it opens but it dint aply required key when exe files starts i must press manual f8 sorry it was f8 key not f2

    i replace f2 with f8 but dint work

    actually when my exe files open i need to press

    f8 so it starts recording

    (it was work f2 when it was open cam studio directry the key was aply as we press f2 for rename)

    take care

  • hi i think we need to aid time delay after my exe file open so after 5 or 10 seconds send keys f8 must aply may b it work so can u tell me

    how do i aid time delay ?

    take care and i was ask to u how can i rate ur video? m new user on youtube so dont know how i can rate and vote

  • set A = CreateObject("WScript.Shell")

    A.Run chr(34) & "D:\MY SOFT\rec\av\avi\CamStudio\reco rder.exe" & Chr(34)

    Set A = Nothing

    Set shl = CreateObject("Wscript.Shell")

    wscript.sleep(7000)

    shl.SendKeys"{f8)

    this should work!

    under the video there are these stars (there blank) rate it as much as you want 5/5 =).

    please tell me if it works!

  • hi i write this

    set A = CreateObject("WScript.Shell")

    A.Run chr(34) & "D:\MY SOFT\rec\av\avi\CamStudio\reco­rder.exe" & Chr(34)

    Set A = Nothing

    wscript.sleep(7000)

    Set shl = CreateObject("Wscript.Shell")

    shl.SendKeys"{f8}"

    it works great i want to know 7000=? how many seconds? if i want use 10 second delay so what i need to type number??

  • every 1000 is 1 second so 10 seconds is 10000 and 7000 is 7 seconds and so on...

  • hi, again

    this time i want to disable my key board and mouce with vbs file can help me?

    also i can enable after disable

    wish u reply

  • sorry.

    i don't know how.

    i'm not that advance.

    but try searching on Google.

    if you figure out please tell me!

    thanks!

  • how u gonna enable when nothing works=???

  • what?

  • lol i replied to someone else

  • does anyone know how to open run with this? "run.exe" doesn't work.

  • i dont think run is a file but if you want this is a difrent way:

    set shl = CreateObject("Wscript.Shell")

    shl.SendKeys"^{ESC}"

    wscript.sleep(100)

    shl.SendKeys"r"

    please rate!

  • hi no it dint work it says error unterminated string constant code 800a0409 i made this one but i aid a msg for delay set A = CreateObject("WScript.Shell") A.Run chr(34) & "D:\MY SOFT\rec\av\avi\CamStudio\reco­rder.exe" & Chr(34) Set A = Nothing x=msgbox ("wana close this file?") Set shl = CreateObject("Wscript.Shell") shl.SendKeys"{f8}" it work but i dont want msg i want just few second delay i rate ur video hop u reply take care
  • im trying to make a msgbox, then open a program after that [a batch file] witch will shut down the computer, can i add this code in after the code for my msgbox?

  • it should but if you have the rong name for that batch file so it wont work.

  • i was just trying out how to do that and this is the script:

    set WSHShell =

    WScript.CreateObject

    ("WScript.Shell")

    WSHShell.Run "you bat file name.bat"

  • but where do i type the "x=msgbox" thing?

  • x=msgbox ("bla bla bla",0,"title")

    Set WSHShell = WScript.CreateObject

    ("WScript.Shell")

    WSHShell.Run "your file name.bat"

    tell me if it works! ty!

  • by the way it is sol.exe and not solt.exe

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more