Results 1 to 6 of 6
  1. #1

    Default Help! vbscript programming..


    Code:
    'Delay time 20 seconds
    WScript.sleep 20000   <--- This will delay the program from running (20 seconds before program runs)
    
    
    Dim WshShell, oExec
    
    
    Set WshShell = WScript.CreateObject("WScript.Shell")
    
    
    'Close all background Programs
    Set oExec = WshShell.Exec("E:\Downloads\CloseMe\x64\CloseMe.exe")   <--- This program will close all running program on the background
    
    
    
    
    Set WshShell = Nothing
    WScript.Quit


    This is my code..

    Good day istoryans,

    i want to ask help in programming this further, since my program works when i remove my specific USB device.

    i connect my vbscript to a 3rd party program that will trace if the specific USB is been remove and the vbscript will do the job that i want. i have problem with this script that i have made, since i am not a very knowledgeable computer programmer, that's why i ask help.

    Prerequisite: (or things i wanted to my new program)

    1. My vbscript works, but i want a click button to stop my script from counting to prevent the program to run.
    - what i mean, i want to stop my vbscript in counting the delay and aboard the operation.


    Please istoryans help me with my problem..
    Hope to find answers to this site..

    x

  2. #2
    No one here's know vbscript?

  3. #3
    D ko sure kung mao ba ni pasabot nimo:

    Add this code
    Code:
       Dim fso, msg
       Set fso = CreateObject("Scripting.FileSystemObject")
       If (fso.FolderExists(Folder/USB Drive)) Then
           ......
    Para mo check if ang Specific Usb exists .. Prob is how to do execute it?
    Task Scheduler? Nag check ko sa web wla may event driven ang vbscript
    if naa ma usab sa hardware.. I think so..


    Nya boss, e Check lang sa web boss if naa ba event handler sa VBScript like onTimer()
    og Global Cons na Variable.. if naa gani try nato sulbad

  4. #4
    Quote Originally Posted by papasilo View Post
    D ko sure kung mao ba ni pasabot nimo:

    Add this code
    Code:
       Dim fso, msg
       Set fso = CreateObject("Scripting.FileSystemObject")
       If (fso.FolderExists(Folder/USB Drive)) Then
           ......
    Para mo check if ang Specific Usb exists .. Prob is how to do execute it?
    Task Scheduler? Nag check ko sa web wla may event driven ang vbscript
    if naa ma usab sa hardware.. I think so..


    Nya boss, e Check lang sa web boss if naa ba event handler sa VBScript like onTimer()
    og Global Cons na Variable.. if naa gani try nato sulbad


    The program is Complete, i have read a lot of tutorial and basic stuffs to complete it.. Thanks to me...

    The vbscript that i have made was very applicable to a piso net users, specially when you relay you USB devices.

    - these means, less load to your system. so you could get better start up times..



    The use of this vbscript program is to automatically close all programs when then USB was been remove and shutdown computer automatically..

    You don't have to burn your ass'es just to locate your USB on event..

    Just use USB Safely Remove Program, this program will do the job when even if USB was been inserted remove, etc.


    - Automatically Close all running programs on the background when user is not using the computer
    - the user has the option to cancel it, If the user has access again on the USB devices
    - Automatically Shutdown computer when user is not using the computer
    - the user has the option to cancel it, if the user has access again to the USB device


    task scheduler s*cks, i tried to program task scheduler to shutdown when the computer is idle for 1 min and wait for 10 mins,,.. but the computer shutdowns for 15 - 16 mins.. its not following my conditions..
    that's why i made a vbscript program... very consistent on my conditions that i have made

  5. #5
    Good for u boss. ^^

    GGWP

  6. #6
    Quote Originally Posted by papasilo View Post
    Good for u boss. ^^

    GGWP

    thank you boss

  7.    Advertisement

Similar Threads

 
  1. Help Guys! Programming!
    By _SingleDraft_ in forum Programming
    Replies: 12
    Last Post: 04-28-2023, 09:01 PM
  2. Need help in programming C#?
    By mrrob2001 in forum Programming
    Replies: 3
    Last Post: 06-05-2008, 08:52 PM
  3. [C] help with program
    By ares623 in forum Programming
    Replies: 2
    Last Post: 03-27-2007, 03:28 PM
  4. HELP: What Program to Cut/Edit MP3s?
    By edgeowns in forum Software & Games (Old)
    Replies: 9
    Last Post: 11-13-2006, 11:20 PM
  5. nid help..java programming
    By ronninalpha in forum Programming
    Replies: 3
    Last Post: 09-13-2006, 07:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top