RBCC Posted July 23, 2006 Posted July 23, 2006 How do I get rid of the black screen in svcpack.inf? in a batch file? John
gunsmokingman Posted July 23, 2006 Posted July 23, 2006 (edited) There are a couple of different ways to do it 1:\ cmdow.exe This needs to be in either \Windows\System32 or the same dir as the batch file.Then at the top of the batch file you need to have this cmdow @ /HID@echo off2:\ VBS methodYou can use a vbs script to hide the cmd window.This script runs Cmd promt 3 timesThe First Time it a Dir cmd The Second is it adds your name to the text fileThe Third is it adds your computer name to the text fileIt then open the text file, then deletes the text fileSave As HideCmdWindow.vbsDim Act : Set Act = CreateObject("Wscript.Shell") Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject") Dim Cmd1, Cmd2, Cmd3, Txt Txt = "DirectoryList.Txt" Cmd1 = "%Comspec% /C " & vbCrLf & "Dir /b /a > " & Txt Cmd2 = "%Comspec% /C " & vbCrLf & "Echo User Name : %UserName% >> " & Txt Cmd3 = "%Comspec% /C " & vbCrLf & "Echo Computer Name : %ComputerName% >> " & Txt Act.Run(Cmd1),0, True Act.Run(Cmd2),0, True Act.Run(Cmd3),0, True Act.Run(chr(34) & Txt & Chr(34)),1,True Fso.DeleteFile(Txt), True Edited July 23, 2006 by gunsmokingman
mazin Posted July 23, 2006 Posted July 23, 2006 Yes, that's what I use: cmdow @ /HID so that I can watch my WINNTBBU pic, enjoyably!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now