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 4034450
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:58:25+00:00 2026-05-20T11:58:25+00:00

I have a very poor experience in writing batch-files. And I need to do

  • 0

I have a very poor experience in writing batch-files.
And I need to do the following:

directory contents 2 files – .exe and .zip

I need to write batch file, merging these two files with resulting file named after zip-file.
In hardcoded variant it looks like this:

copy /b init.exe+archive.zip archive.exe

But it would be great if I could put in my directory zip-file with arbitrary name, click on my bat-file and get the exe-file with the name same as my archive’s name.

P.S. (init.exe is never changes and directory will always containt only one zip-file at a time)

Thanks a lot for any help with this.

  • 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-20T11:58:26+00:00Added an answer on May 20, 2026 at 11:58 am

    Something like this should do the job, I think:

    FOR %%f IN (*.zip) DO COPY /B init.exe + "%%f" "%%~nf.exe"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have very little experience with ASP.NET and I am doing some self-training before
I have very little experience working with sockets and multithreaded programming so to learn
I have very little experience using Sharepoint but a good amount using Visual Studio
I have very strange issues in my application. I added a layout file with
I have very little knowledge about unix. My task is to write a shell
I have a multi-page PDF file that has information I need to parse. The
I have added the following configuration section to my web.config file <security> <authentication> <anonymousAuthentication
I have legacy asp.net 1.1 website. It has a very poor VB layered achitecture.
I have a multithreaded application in which my thread utilization is very poor (in
I have a very poor understanding of exception handling(i.e., how to customize throw, try,

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.