Results 1 to 4 of 4

Thread: Little help with a VBScript.

  1. #1
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Little help with a VBScript.

    I use a preset active desktop image for all users of my domain. The problem is that there is a bug in Windows 2003 that some times does not show the desktop image unless you refresh the desktop.

    I am trying to write a small vb script to refresh the desktop on logon

    here is what I have up to now

    Option Explicit
    Dim WSHShell, strDesktop
    Set WSHShell = WScript.CreateObject("WScript.Shell")
    strDesktop = WSHShell.SpecialFolders("Desktop")
    WSHShell.AppActivate strDesktop
    WSHShell.SendKeys "{F5}"
    WScript.Quit

    ' End of VBScript to refresh the desktop

    I have yet to test this but as I am a total n00b to VBS could any of you guys give me a clue as to if this will work or if there is a better way to do this?

    Thanks.
    Last edited by Jay; 01-05-2008 at 12:22 PM.
    □ΞVΞ□

  2. #2
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Re: Little help with a VBScript.

    anyone?
    □ΞVΞ□

  3. #3
    Splash
    Guest

    Re: Little help with a VBScript.

    Looks like it should do the job to me - have you tested it yet?

  4. #4
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Re: Little help with a VBScript.

    yes, I tested it and it worked! Quite shocked I managed to pull that one off.
    □ΞVΞ□

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. WTB VBscript guru
    By Splash in forum Software
    Replies: 0
    Last Post: 07-03-2008, 05:08 PM
  2. vbscript access db not found.
    By icanhazburger in forum Software
    Replies: 12
    Last Post: 13-01-2008, 11:08 PM
  3. VBScript Response.BinaryWrite problem
    By IBM in forum Software
    Replies: 7
    Last Post: 05-10-2005, 01:13 PM
  4. Replies: 20
    Last Post: 08-03-2005, 08:01 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
  •