Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Help Needed To Create Windows Startup Script!
Niru
post Jan 20 2007, 02:48 PM
Post #1


Advanced Member
Group Icon

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
Go to the top of the page
 
+Quote Post
CaptainRon
post Jan 21 2007, 07:31 AM
Post #2


Premium Member
Group Icon

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

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
Go to the top of the page
 
+Quote Post
iGuest
post Jan 23 2008, 02:35 PM
Post #3


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
iGuest
post Mar 18 2008, 08:06 PM
Post #4


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post
iGuest
post Apr 25 2008, 02:51 PM
Post #5


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. What Is The Use Of Service Packs For Windows?(15)
  2. Microsoft Service Pack 2 Cd (free)(17)
  3. Windows Not Recognizing Ipod(19)
  4. How To Increase Windows Shutdown Speed(39)
  5. A Note To All Illegal Windows Xp Owners(44)
  6. Where Does Windows Xp Store Its Passwords ?(10)
  7. Command Line (dos) Tips For Windows Xp(5)
  8. Restore Windows File And Folder Protection(4)
  9. How To Create "ghost" Images (norton) On Windows(46)
  10. Disable Recent Docs History In Windows(2)
  11. 12 Things You Didn't Know About Windows XP(5)
  12. Help: Adding My Videos Folder To Start Menu(10)
  13. How To Run Mac On Windows ?(14)
  14. Windows Server 2003(8)
  15. The Best Version Of Windows(42)
  1. Windows XP Error: Explorer Crashes While Drag & Drop(14)
  2. Can You Create A Folder Name "con"(14)
  3. Windows XP Folder Encryption Key ?(13)
  4. Lock Workstation Shortcut(8)
  5. Deleting A Corrupt File(25)
  6. Will Using Fdisk Corrupt Windows Partition?(9)
  7. How To Make Windows Xp Faster(30)
  8. Windows Vista(5)
  9. Windows Xp Sp3 Available(16)
  10. Windows Sp4 ?(8)
  11. Why I May Be Installing Windows Xp Sp3 Again(7)
  12. Image Problems With Windows 2000(8)
  13. Windows 7(4)


 



- Lo-Fi Version Time is now: 22nd August 2008 - 05:32 AM