Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
Computer Hope forum e-mail issues and down time
0 Members and 1 Guest are viewing this topic.
In a folder you have 1 file only. if it is called sample.txt you want to create a folder there called sample
QuoteIn a folder you have 1 file only. if it is called sample.txt you want to create a folder there called sampleyeah if i do it my problem 50% solved
Why don't you do it in Windows? Cmd prompt does not have a clipboard.Is this right?
set name=%~dpn1mkdir "%name%"
@echo offsetlocal enabledelayedexpansionfor /f "delims==" %%F in ('dir /b *.txt') do ( echo found text file : %%F echo will make folder : %%~nF if not exist "%%~nF" md "%%~nF" )pause