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.

98se batch "syntax error"

Featured Replies

I've tried every combination and permutation of % and %% and A and a and ` ` and ' ' and " " and ... I can think of

I still get "syntax error"

I have x number of 7z archives of my thunderbird email account, backup1.7z, backup2.7z etc, in a /BACKUP dir

I want to set a variable to the oldest file name, so that the next time 7zip runs, it overwrites the oldest

batch is run from the /BACKUP dir

7za.exe command line version is in c:\windows

cls
DIR /B/O-D *.7z
rem successfully generates a list of 7zip archives with oldest file first

FOR /F %%A IN ('DIR /B/O-D *.7z') DO SET %OLDEST%=%%A
rem every permutation generates a "syntax error"!

7za a %OLDEST% "c:\windows\application data\thunderbird\*"
rem when %OLDEST% is set manually, 7zip generates the archive

can anyone see what I am doing wrong? help!

using w98se with soporifics/mgdx' autopatcher

Edited by Molecule


SET %OLDEST%=%%A 

Sets the VALUE OF the OLDEST variable to have the VALUE OF FOR loop variable A.

SET OLDEST=%%A 

Sets the OLDEST variable variable to have the VALUE OF FOR loop variable A.

Or, if you prefer, the actual variable is called "OLDEST" and "%OLDEST%" is expanded to the VALUE it was SET to.

Apart from this, the FOR /F needs a modified command.com (actually a CMD.EXE).

See here:

http://www.computerhope.com/forhlp.htm

http://reboot.pro/2392/

jaclaz

Edited by 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.