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
blockie

 
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
UsernameIssues

W7 Pro SP1 64bit
 
 

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

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

 Batch file not working as expected




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
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
Making changes to start menu (customization isn't working as expected)
I know I did something to change my Windows 7 start menu to the older look, I can't honestly recall what. I'm fine with this look, it is comfortable to use, I just have a couple tweaks I am trying to figure out how to do. This is what my menu looks like: ...
Customization
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
Windows xp batch file not working in Windows 7
Hi All, Script below used to work fine with Windows Xp set sqlDB=%2 set sshFile=ssh_%1 ssh dep@stdetails.com "/home/deployment/bin/ssh_dump.sh %1" scp dep@stdetails.com:/home/deployment/workspace/%sshFile%.sql.gz . 7z x %sshFile%.sql.gz
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 06:55.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App