Search found 14 matches
- 26 Jun 2012 02:40
- Forum: DOS Batch Forum
- Topic: Get Foldernames in Notepad
- Replies: 2
- Views: 2279
Get Foldernames in Notepad
Hi Members, Is it possible to copy only folder names to notepad by prefix.. Currently I am using this dir/a /b /-p /o:gen >FileList.txt The above code copies all the folder names to a textfile. suppose I have a folder like this --AOapplle --AOBaby --COCar Wat if instead of getting all the folder nam...
- 17 May 2012 23:22
- Forum: DOS Batch Forum
- Topic: Copy folders with filename
- Replies: 10
- Views: 8820
Re: Copy folders with filename
setlocal enabledelayedexpansion for /f "delims=" %%f in ('dir /b/a-d/s *_imp.png') do ( set "name=%%~nf" ren "%%~dpf." "!name:~0,-4!" ) Hi !k, There is a problem.Your code works fine if I copy the bat file and run it inside the folder. But if I drag and drop ...
- 08 May 2012 01:44
- Forum: DOS Batch Forum
- Topic: Copy folders with filename
- Replies: 10
- Views: 8820
Re: Copy folders with filename
Thank u !k and prash11.
- 07 May 2012 22:45
- Forum: DOS Batch Forum
- Topic: Copy folders with filename
- Replies: 10
- Views: 8820
Copy folders with filename
I have a folder structure like this ├───blue ──apple.png ──box.png ──cartoon_imp.png ├───green ──cat.png ──dog_imp.png ──fox There is *_imp.png in every folder.I want to rename every folder with corresponding to *_imp.png filename inside it. Like this ├───cartoon ──apple.png ──box.png ──cartoon_imp....
- 16 Mar 2012 02:07
- Forum: DOS Batch Forum
- Topic: Hi members..Small help needed
- Replies: 14
- Views: 8939
Re: Hi members..Small help needed
Make sure that you place this batch file and also "get image dimensions.vbs" as listed below in "e:\color" and then run the batch file. What hasn't been discussed is the possibility of filename clashes where a file in two different folders may have the same name. This code renam...
- 15 Mar 2012 04:38
- Forum: DOS Batch Forum
- Topic: Hi members..Small help needed
- Replies: 14
- Views: 8939
Re: Hi members..Small help needed
Do you want one unique folder for every 100x50 image (say a folder called 100x50) or do you want a unique folder inside of every other folder in the tree, and then place the 100x50 images in that folder. So do you want this for every image of 100 x 50 e:\colors\100x50 or this style of structure? e:...
- 14 Mar 2012 21:15
- Forum: DOS Batch Forum
- Topic: Hi members..Small help needed
- Replies: 14
- Views: 8939
Re: Hi members..Small help needed
It's all possible but would you please explain before ... can I have a code that copies those files on its own,creates a folder and pastes it. What folder should it create, what's its name and where should it be placed? One new folder for each copied file? Regards aGerman Sorry for my poor explanat...
- 14 Mar 2012 09:23
- Forum: DOS Batch Forum
- Topic: Hi members..Small help needed
- Replies: 14
- Views: 8939
Re: Hi members..Small help needed
Only an VBScript alternative for people who won't install a 3rd party. getdimensions.vbs If WScript.Arguments.Count = 0 Then f = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) Else f = CreateObject("Scripting.FileSystemObject").GetAbsolute...
- 12 Mar 2012 05:13
- Forum: DOS Batch Forum
- Topic: Hi members..Small help needed
- Replies: 14
- Views: 8939
Re: Hi members..Small help needed
Hi foxidrive thanks for ur help.. But I guess thats not exactly what I want. Right now my script is like this @echo off cd %1 :copypng for /r %%i in (*.png) do copy /y "%%i" "D:\target folder" After running this I get all the png files where as I need only .png files of 100x50 di...
- 12 Mar 2012 00:39
- Forum: DOS Batch Forum
- Topic: Hi members..Small help needed
- Replies: 14
- Views: 8939
Hi members..Small help needed
I have around 200 images of different dimensions in a directory.
Is it possible in .bat or .vbs to copy images of only 100*50 dimension.
Please help
Is it possible in .bat or .vbs to copy images of only 100*50 dimension.
Please help
- 16 Jan 2012 23:39
- Forum: DOS Batch Forum
- Topic: Help needed for creating Folder structure
- Replies: 8
- Views: 7640
Re: Help needed for creating Folder structure
The following is the folder structure I need. E:\COLORS ├───scriptfile │ createfolders.bat ├───green │ └───1 │ ├───a │ ├───b │ └───c ├───oragne │ └───1 │ ├───a │ ├───b │ └───c Since I wanted the batch file to create folders in current directory.I modified it to this SET "CDIR=%~dp0" for /d...
- 16 Jan 2012 22:06
- Forum: DOS Batch Forum
- Topic: Help needed for creating Folder structure
- Replies: 8
- Views: 7640
Re: Help needed for creating Folder structure
Thanks a lot !k and aGerman..
- 16 Jan 2012 11:41
- Forum: DOS Batch Forum
- Topic: Help needed for creating Folder structure
- Replies: 8
- Views: 7640
Re: Help needed for creating Folder structure
@Squashman
yes exactly...
**sorry for my poor explanation..
yes exactly...
**sorry for my poor explanation..
- 16 Jan 2012 05:20
- Forum: DOS Batch Forum
- Topic: Help needed for creating Folder structure
- Replies: 8
- Views: 7640
Help needed for creating Folder structure
I guess this might seem pretty noobish to ask.I am a completely new to programming.I need help for a little .bat script which I made. Colors>red >blue >green >orange >and more Right now what I do is go to every folder and run the script. I want a script which will create folder structure inside all ...