Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6660779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:11:52+00:00 2026-05-26T02:11:52+00:00

I looked up my question on the Internet but couldn’t find an answer…so I’m

  • 0

I looked up my question on the Internet but couldn’t find an answer…so I’m posting it here.

I want my batch to creat a folder with the name of most recent folder +1.
For example I have a folder called “folder-01” and I want the batch to call it “folder-02”.

Then I want it to create a .html file named after the most recent file (that is in the most recent folder) +1;
For example I have a file called “test-01.html” located in “folder-01” and I want it to create a file called “test-02.html” in “folder-02”.

My batch for now looks like this :

@echo off
type Autres\Standart.html > Today\test-02.html
start Programmes\Platform\PortableApps\Notepad++\Notepad++Portable.exe Today\test-02.html
start Programmes\Platform\PortableApps\Firefox\FirefoxPortable.exe Today\test-02.html

The 2nd line in the code is so that my new file is created with a standart html content.

Thx in advance !

–LunaSea

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:11:52+00:00Added an answer on May 26, 2026 at 2:11 am

    Please have a look at the linux/Posix function mktemp( ). It constructs file names that are guaranteed unique. It could be that you can get mktemp( ) to give you back a file name that increments the way you want it to, but I don’t recall that as a mktemp( ) feature.

    The main thing is that file name returned is unique, something you cannot guarantee by just blindly bumping the value of the final character. You have to agree that using a file name that you generate is certain disaster if that file name already exists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This looked like a very simple question but I couldn't find the answer. How
I've looked around here for similar question but couldn't find any that solved my
Quick question (and sorry if it's already been asked, I have looked but couldn't
I have looked around stackoverflow and search the internet but did not find a
I've looked all over the internet trying to find an answer to my problem,
I have looked all over the internet for an answer to this question and
I looked all over the internet and still couldn't find a solution to this.
I have looked around on the Internet trying to answer this question. It seems
I have looked all over the internet for an answer to my question to
I've looked at this question: Select first instance only with XPath? But if I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.