Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > BgInfo
  New Posts New Posts RSS Feed: Translate .bat to VBScript
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Translate .bat to VBScript

 Post Reply Post Reply
Author
Message Reverse Sort Order
Tonyz View Drop Down
Newbie
Newbie


Joined: 10 December 2006
Location: France
Online Status: Offline
Posts: 1
Post Options Post Options   Quote Tonyz Quote  Post ReplyReply Direct Link To This Post Topic: Translate .bat to VBScript
    Posted: 10 December 2006 at 12:33pm

set WshShell = Wscript.CreateObject("Wscript.Shell")

WshShell.run ""\\131.62.80.10\HelpDesk\Scripts\BGInfo\BGInfo Server\BGInfo.exe" "\\131.62.80.10\HelpDesk\Scripts\BGInfo\BgInfo Server\Server.bgi" /SILENT /NOLICPROMPT /timer:0",2,true

 

 

Back to Top
Timothy.Malloy View Drop Down
Newbie
Newbie


Joined: 27 November 2006
Online Status: Offline
Posts: 2
Post Options Post Options   Quote Timothy.Malloy Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2006 at 3:25pm
Will someone please be so kind as to help me translate a .bat to vbscript? I can't seem to do it despite my best attempts. Here's the .bat:

@echo off

"\\131.62.80.10\HelpDesk\Scripts\BGInfo\BGInfo Server\BGInfo.exe" "\\131.62.80.10\HelpDesk\Scripts\BGInfo\BgInfo Server\Server.bgi" /SILENT /NOLICPROMPT /timer:0

As you can see, I am trying to run the BGInfo app from a share. I don't want to copy the .bat to everyone's startup folder rather I would like to run the vbscript command from group policy logon script. Thanks for any help you can offer.

Tim

Edited by Timothy.Malloy - 06 December 2006 at 3:26pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down