MSFN Forum: Q: Can I run my .bat files through RunOnceEx.cmd - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Q: Can I run my .bat files through RunOnceEx.cmd and do I have to add any switch after them to work correct? Rate Topic: -----

#1 User is offline   brnn 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 06-April 06

Posted 09 April 2006 - 09:58 AM

Can I run my .bat files through RunOnceEx.cmd and do I have to add any switch after them to work correct?
(In the .batch are included all the switches needed to install the program, and there is @cmdow /hid in the top because I don't want the cmd window to be shown)


#2 User is offline   Plamdi 

  • Junior
  • Pip
  • Group: Members
  • Posts: 82
  • Joined: 22-March 06

Posted 10 April 2006 - 05:23 AM

Yes you can, and if you don't want the batch file shown at all use VBS to launch it - or even better use VBS to perform the tasks of your batch file. Example VBS code to run a custom program hidden:
Option Explicit
On Error Resume Next
If Wscript.Arguments.Count<>1 Then WScript.Quit(0)
Dim WshShell,p
p=Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-_
  Len(WScript.ScriptName))
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.Run p&Wscript.Arguments(0),0
Set WshShell=Nothing
WScript.Quit(1)
Usage: WSCRIPT SCRIPTNAME.VBS BATCHFILE.CMD

Requirements: Batch file in same directory as script.

But yes, you can use .BAT/.CMD in the same way as .EXE or .COM from RunOnceEx.cmd.

#3 User is offline   TjobzzZ 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 26-August 04

Posted 11 April 2006 - 02:43 AM

One thing to do is rename the .bat to .cmd, it has the same but extended capabilities. If you don't want to see the command window, use CMDOW. Just run a search fo it or look on the MSFN unattended site.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy