Avatar of TBLTMK
TBLTMKFlag for United Kingdom of Great Britain and Northern Ireland asked on

How do i show a picture when a logon script is run?

I have setup a network script that maps network drives ect.  I am now wanting to display a picture (that i wil create myself) when the logon script is excuted so I get any new /important information to the users. I have seen pictures being displayed at other companies in network scripts and i am wanting to know how i can achieve this.  I want the picture displayed for a set time and then disappear. Just make clear why i am saying a picture rather than just displaying in a text box ect.  Its because a picture will get the users attention and i can illistrate my point better with pictures of drives ect.   The clients are Windows XP and the server is Windows NT 4.  Any information or adivce is welcome.  
VB ScriptVisual Basic ClassicWindows XP

Avatar of undefined
Last Comment
TBLTMK

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
sirbounty

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
TRobinJames

Add a pictureBox to your login form
SOLUTION
JesterToo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
TBLTMK

Thanks for your help guys.  If i run the code that jestertoo posted (obivously changing the picture to a file on my machine) internet explorer opens up the picture and then closes.  However, if the X at the top right is click the error message attached occurs.  I know if I put the code in the logon script someone is going to click the X before the 10 seconds is up and will then phone saying they have a error on screen. Is it possible to disable the X at the top right?  Or if not just stop the error messages being displayed.  Preferable disable the X. Thanks
error-in-login-script.JPG
JesterToo

Add this statement just before the oIEA.Quit


 On Error Resume Next
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
TBLTMK

Is it possible to disable the top title bar with the minimize, maximise and close button?
JesterToo

It may be possible, but I don't know of a reliable way that works under all versions of IE.  Also, the user could still terminate IE by pressing Alt-F4.
sirbounty

Would it be sufficient to temporarily change the desktop wallpaper?
Obviously this won't be in the foreground, so if you have anything else running that would cover it up - it'd be useless...just tossing out ideas though...
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
TBLTMK

I think i prefer the internet explorer idea more but i like your ideas sirbounty.  I'll test it and get back to you all.
ASKER
TBLTMK

I've performed some testing on a virtual machine and like what i see.  I just need to test the scripts on a few select machines.  I think i could utilise these scripts more than first anticpated.  Can anyone tell me  the best way to learn?  I've written in VB6 before to create database programs but not looked at scripts. I've read VVscript is just a cut down version???  Where can i find more information about "InternetExplorer.Application" object with examples. I wont be able to test the the rest until next week when i'm back on site but will be checking EE site. thanks
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
TBLTMK

Thanks a question i forgot to ask..is it possible to pass a varible to a vbs file?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
TBLTMK

I have created a few scripts and tested the vbs but i want to iron out of couple of other issues. Before the valid picture is displayed, Internet Explorer tries to open a web page which i think is the home page of the user.  How can i just get to open the pic straight away?  Also the title bar shows "http://live.search - network drives - Live search - micrsoft internet explorer" but preferable i want it to display just network drives.  
Option Explicit
 
Const cIMG = "<img src='file://cadserver/netlogon/NetDrv.jpg' border='1'>"
 
Dim oIEA
 
    Set oIEA = CreateObject("InternetExplorer.Application")
 
    oIEA.ToolBar = 0
	OIEA.AddressBar =false
    oIEA.StatusBar = 0
    oIEA.Width = 700
    oIEA.Height = 550
    oIEA.Left = 0
    oIEA.Top = 0
    oIEA.Visible = 1
	oIEA.MenuBar = false
	oIEA.Navigate "Network drives"
 
    While oIEA.Busy
    Wend
    oIEA.Document.Body.InnerHTML = cIMG
 
    WScript.Sleep 10 * 1000
	On Error Resume Next 
	oIEA.Quit
	set oIEA = Nothing
    

Open in new window

network-drives.JPG
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
TBLTMK

Thanks for the complete answers you've given me.  I have the resources to help me take this further.