Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Batch file not working as expected

17 May 2013   #1

Batch file not working as expected

The following batch file displays the txt but immediately erases. Why?

@Echo off
ECHO There have been 15 minutes or more of inactivity on this computer. Automatic LOGOFF will occur in 60 seconds.

My System SpecsSystem Spec
17 May 2013   #2

W7 Pro SP1 64bit

If you want the execution of the batch file to pause - add pause on the last line.

@Echo off
ECHO There have been 15 minutes or more of inactivity .....
My System SpecsSystem Spec

 Batch file not working as expected

Thread Tools

Similar help and support threads
Thread Forum
Expected Converted File Size ?
I've been converting some WMV files to MP4 files using XMedia Recode. Some of the converted files are much smaller than the original files, but others are not. Does anyone know of any software that can tell the resulting converted file size without having to do the conversion, since the...
Music, Pictures & Video
Batch file help. For loop not working...
What im trying to accomplish: -I want to REG QUERY a registry entry that will output the value of a (*SpeedDuplex) string value -I then want to store that value in a variable The command im using and the output: REG QUERY...
General Discussion
How to run a batch file at logoff & some batch scripting help please
Hiya, I'd just like to run a simple batch file at logoff to backup some settings. I plan to use Robocopy, which is what i use to more thorough backups. Two questions: 1. How make it run by clicking Start > Shutdown? (i realise i could make a shutdown batch file and run it instead, but i'd...
Backup and Restore
batch file is not working
I created a batch file with rasdial command....if i try to run it a command prompt window opens for a fraction of second and then nothing happens...i tried to run it as admin...still no change.. what do I need to do?
Performance & Maintenance
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 00:08.
Twitter Facebook Google+