Search found 6 matches
- 25 Jun 2010 01:26
- Forum: DOS Batch Forum
- Topic: Delete files which matches to the pat tern
- Replies: 2
- Views: 5458
Delete files which matches to the pat tern
How can I delete files which matches to pattern for example I have folder with files test.txt some_image.bmp test setup.exe test a1 now I want to delete files which name contain word “test” so this will by three files test.txt test (file don’t have extension) test a1 (file don’t have extension) I ha...
- 16 Jun 2010 07:28
- Forum: DOS Batch Forum
- Topic: How to undo SHIFT effect
- Replies: 2
- Views: 4676
How to undo SHIFT effect
How can I undo Shift effect of course if it possible. What do I mean, I’m executing my script passing two or more arguments and in this script I have shift so my first argument will be equals what I pass as second argument. Now when method with shift will end I wan to undo shift effect. e.g. I have ...
- 15 Jun 2010 04:23
- Forum: DOS Batch Forum
- Topic: Condition „IF†with variable with white space
- Replies: 2
- Views: 4528
Re: Condition „IF†with variable with white space
It's working, thanks.
- 15 Jun 2010 03:23
- Forum: DOS Batch Forum
- Topic: Condition „IF†with variable with white space
- Replies: 2
- Views: 4528
Condition „IF†with variable with white space
I have folder with other folders and I want to do something with them but only with some of them. I have loop which searching all folders, loop have also condition which checking if folder name is different then specified than do something. Unfortunately some folder have white space in name and my c...
- 14 Jun 2010 07:13
- Forum: DOS Batch Forum
- Topic: Getting full (or short) folder name with white space in loop
- Replies: 2
- Views: 4656
- 14 Jun 2010 06:50
- Forum: DOS Batch Forum
- Topic: Getting full (or short) folder name with white space in loop
- Replies: 2
- Views: 4656
Getting full (or short) folder name with white space in loop
Getting full (or short) folder name with white space in loop Hello, I’m tiring to get all folder name and only folder in loop. I have problem because folder name have whitespace. My loop for /f %%a in ('dir /b /ad') do ( ECHO "%%a" ) So if folder name is e.g. “Folder name 1” I’m getting on...