Jump to content

anyone good at batch script ?


nsfholic

Recommended Posts

Hi guys,

I want to make *.txt files named after the all the folders in current directoy

I need 10 *.txt files from 10 folders' names.

but this scripet only makes one from its parent folder name, which is absolutely not needed :unsure:

@echo off
for %%* in (.) do type NUL > %%~n*.txt

anyone good at batch script?

:)

Edited by nsfholic
Link to comment
Share on other sites


  • Replies 2
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • nsfholic

    2

  • rach

    1

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...