Link to home
Start Free TrialLog in
Avatar of cpfts
cpftsFlag for United States of America

asked on

Active Directory - Login Script HELP!

Hi All -

We want to add some code in a login script to call a pop-up picture when people login to their computer.    Anyone know some good scripts for this?

Thanks!
Avatar of sirbounty
sirbounty
Flag of United States of America image

pop-up 'picture'?  

Picture of what?
Avatar of cpfts

ASKER

what about a pop-up html page?  
dim objShell:Set objShell=CreateObject("Wscript.Shell")

objShell.Run "somefile.html"

might work...
Avatar of cpfts

ASKER

did not work
how about:

objShell.Run "start somefile.html"

or

objShell.Run "iexplore somefile.html" 'though that one will launch IE - not the default browser.
Avatar of cpfts

ASKER

ie is fine.  Thanks for your help too.  Do you know of a way to size the window?
Avatar of cpfts

ASKER

this is running from a .bat in a login script too.  - just fyi
Oh - then in a batch file:

start /max myfile.html

or

start /max iexplore myfile.html
Avatar of cpfts

ASKER

here is what i have so far:

@echo off


objShell.Run "\\servershare\sharedfolder\testy\Test.html"

cls


exit


It does not work like that but it does with "start" in front of the path...
try my last post - you don't need to mix the vbs and bat solutions..
Avatar of cpfts

ASKER

how do i set a certain size and eliminate toolbar/url etc....
ASKER CERTIFIED SOLUTION
Avatar of sirbounty
sirbounty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Iexplore -K
ah - tomato/tomAHto... hee hee...
:0)

Actually right word = right answer. Wrong word = wrong *soup* (tomato soup).... hee hee....so it should be tomato not tomAHto....