Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

cmd file help error

Featured Replies

Does anyone have a good method for catching error's in .cmd files and sending to a text file or pause it? As I've read there can be like 256 or so errorlevel's

Thought I seen something here once before but can't find it for nothing.

  • 2 weeks later...

Hey maxXPsoft,

I was wondering something similar when trying to troubleshoot a .cmd file the other day.

The only thing I was able to find was that if you put a eg.">>C:\test.log" after every command that you execute, it will send the results to the example test.log.

Example. "C:\dir>>C:\test.log" outputs what you would see if you ran that command in dos.

I hope this is what you were asking about, and I hope it helps! :hello:

In NT4/2K/XP/2003 the latest ERRORLEVEL generated is stored by system in variable called, guess what?, ERRORLEVEL, so that to log them you just need something along the lines of:

.....
@ECHO OFF
if exist %TEMP%\logfile.log del %TEMP%\logfile.log
if not exist %TEMP%\logfile.log ECHO [Logfile start] > %TEMP%\logfile.log

:doing_SOMETHING
DIR C:\
::this ^ is the SOMETHING action
Echo DONE SOMETHING RESULTING ERRORLEVEL IS  %ERRORLEVEL% >> %TEMP%\logfile.log
......

See here for more info and details:

http://www.robvanderwoude.com/errorlevel.html

jaclaz

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.