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.

VOL and | pipe problem

Featured Replies

I have an unattended install that starts from DOS and displays a message, partitions and formats the HD then reboots and starts the install. There is a line in my batch that looks at the volume name to deceide if its done the partition and format already. The line uses 'vol' and pipes the output into the 'find' command and sets the error level if it finds a match. The lines are :

rem check for volume labels here

rem jump next section if match is found

@vol c: | find "BALCD" /c > NUL

@if NOT errorlevel==1 goto instLCD

@vol c: | find "BACRT" /c > NUL

@if NOT errorlevel==1 goto instCRT

This all works fine when testing with my floppy drive. I have now burnt a CD containing the files from the FD as my install must only be a single cd. The problem is that the pipe | command pipes the information via a temp file and not in RAM. So it works fine when useing a FD but i get a write error when usgin the CD. Does anyone know a way around this, or maybe have an alternate 'vol' command?

How about this.

@for /f "tokens=6" %%A in ('vol') do @if "%%A"="BALCD" goto instLCD

you would probably have been better using

if not errorlevel 1 goto instLCD

however you could try this

vol c:|find "BALCD">NUL 2>&1 &&goto instLCD
vol c:|find "BACRT">NUL 2>&1 &&goto instCRT

If you are having the problems as you say with the pipe from a cd-rom then

@for /f "tokens=6" %%? in ('vol c:') do (
@if "%%?" equ "BALCD" goto instLCD
@if "%%?" equ "BACRT" goto instCRT)

Edited by Yzöwl

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.