|
|
|
|
![]() ![]() |
Jan 20 2007, 02:48 PM
Post
#1
|
|
|
Advanced Member Group: Members Posts: 190 Joined: 18-August 06 From: Fun.NiranVv.Com Member No.: 15,325 |
Hi all,
I need a help from any one out here! I need to display one confirmation box using windows startup script! I need to run this script on each and every client system in my LAN! Here is the requirement: The script should ask the user to click yes to continue or no to exit. If the user click yes, that should open Internet Explorer with some site , Say google.com and after filling some forms and after closing the browser, that should bring to regular login screen which says, cntrl alt del to login! If the user directly preses the no button, that should close the confirm box and should go to the regular windows login screen! So here is the sequence: 1. Call the script on Windows booting ( I can do that ) 2. The script Will display one Confirm box with Yes and No button! 3. If the user clicks Yes: i. Open Internet Explorer with google.com ii. When user closes IE, go to step 5 4. If the user presses No, go directly to step: 5 5. Show windows regular login/welcome Screen So, If anybody knows the windows script programming ( I think, VBScript is using for that) please do reply to me! I'm waiting for ur responses! Thanks, Niru |
|
|
|
Jan 21 2007, 07:31 AM
Post
#2
|
|
|
Premium Member Group: Members Posts: 238 Joined: 9-September 05 Member No.: 8,400 |
Hi.
I have a partial solution to your problem. Have a look at this demo script I wrote: CODE set WshShell = WScript.CreateObject("WScript.Shell") retval = WshShell.Popup ("Hi",,"Hello", 4+32) If retval=6 Then WshShell.Exec("dos.bat") Else WshShell.Run("%windir%\system32\shutdown -l") End If Here dos.bat is a batch file and it may have any name. The contents of the batch file is nothing but the start statement with the URL you want to open. Like this: QUOTE start http://www.google.com This would run the default browser and open Google.com in it. Make sure that the batch file is in the same directory as the script file. I used a batch file only for convenience reasons, you may use any alternate method to call the start command. Now what this script fails to do is to logout once the work with the browser is done. I am yet to figure out whether applications can be started modally from a VBS or a batch file. This post has been edited by xboxrulz: Jan 21 2007, 10:12 PM |
|
|
|
Jan 23 2008, 02:35 PM
Post
#3
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
how did you get it to run the script at startup?
Help Needed To Create Windows Startup Script! I'm trying to figure out where to put the scripts to run at machine startup and at user login. In xp, I just made some directories in the "group policy" directory. I assume you did something simialer but I can't find it by searching google. Please let me know... -dylan |
|
|
|
Mar 18 2008, 08:06 PM
Post
#4
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
Help needed to run a script every time with the windows startup ?!!
Help Needed To Create Windows Startup Script! Hi all, I need help from any one out here! I need to know the methodology for executing a script which is in " .Vbs " format to run every time the windows starts-up. So, If anybody knows the windows script programming for a small script to be run at startup , please do reply to me! I'm waiting for your responses! Thanks, Stallion -question by Stallion |
|
|
|
Apr 25 2008, 02:51 PM
Post
#5
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
re: startup script/s
Help Needed To Create Windows Startup Script! Http://www.Dummies.Com/WileyCDA/DummiesArticle/Writing-a-WebLogic-Startup-Script.Id-1992.Html |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd August 2008 - 05:32 AM |