How with bat file

  • Thread starter Thread starter newbie
  • Start date Start date
N

newbie

Hi,

I'm using XP home with all updates.
I have a bat file that moves files from one folder to another every hour.
What can be done so the bat file don't show up on the monitor when it runs.
I have tried @echo off.

TIA
 
Right click on the bat file, go to Properties, Shortcut,
look in the Run drop-down menu and select Run
Minimized . . .

Good Luck !
 
| message | I'm using XP home with all updates.
| I have a bat file that moves files from one folder to another every hour.
| What can be done so the bat file don't show up on the monitor when it runs.
| I have tried @echo off.

One way to hide the command prompt window is to write a VBS script that
uses the Run Method to run the batch file. And use the intWindowStyle
option to set the appearance of the command prompt's window to hidden.

For example, if your bat file is named: C:\scripts\movfiles.bat

Then you would save the following two line script with an extension
..vbs. And then execute this *.vbs file instead of running your *.bat
file directly.

CreateObject("WScript.Shell").Run "C:\scripts\movfiles.bat", 0
Set WSHShell = Nothing

- For some information about the WSH Run Method see:
MSDN Home | MSDN Library | Web Development | Scripting | Windows
Script Technologies | Windows Script Host | Reference | Methods
Windows Script Host: Run Method
http://msdn.microsoft.com/library/en-us/script56/html/wsmthrun.asp

- For an offline version of the MSDN Library | Web Development |
Scripting | Windows Script Technologies Web Site pages visit the
following Microsoft Download Site and download scrdoc56en.exe. Then
double-click scrdoc56en.exe and it will prompt you for a location to
extract the Windows Script Technologies Help file (Script56.CHM)

Microsoft Windows Script 5.6 Documentation (scrdoc56en.exe)
http://www.microsoft.com/downloads/...48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en

- Visit the TechNet Script Center for sample scripts, tools, documentation, etc.

Microsoft TechNet Script Center
http://www.microsoft.com/technet/community/scriptcenter/default.mspx

- And if you need any help with scripting try posting in the newsgroup:

Windows Server Scripting

Microsoft Windows Server 2003
Management Technologies Newsgroups
http://www.microsoft.com/windowsserver2003/community/newsgroups/management/default.mspx
 
MGGP said:
Right click on the bat file, go to Properties, Shortcut,
look in the Run drop-down menu and select Run
Minimized . . .

Good Luck !
No luck with that, I see how that can be done in Win98SE but this XP wont
let me change shortcut in properties and I don't see "run minimized" window
anywhere
 
Back
Top