Search found 6 matches

by ernest211
25 Jun 2010 01:26
Forum: DOS Batch Forum
Topic: Delete files which matches to the pat tern
Replies: 2
Views: 5488

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...
by ernest211
16 Jun 2010 07:28
Forum: DOS Batch Forum
Topic: How to undo SHIFT effect
Replies: 2
Views: 4692

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 ...
by ernest211
15 Jun 2010 03:23
Forum: DOS Batch Forum
Topic: Condition „IF” with variable with white space
Replies: 2
Views: 4551

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...
by ernest211
14 Jun 2010 06:50
Forum: DOS Batch Forum
Topic: Getting full (or short) folder name with white space in loop
Replies: 2
Views: 4676

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...