Search found 7 matches
- 06 Sep 2013 15:45
- Forum: DOS Batch Forum
- Topic: Group in folder
- Replies: 12
- Views: 11060
Re: Group in folder
Hi penpen A for loop is (only) slight faster than the ":label" "goto label" solution. I'm new in batch file things. I know c and java but nested If and for loops of batch files and their conditions make me confuse. One of my PC's is slower and it happens regularly that there are...
- 06 Sep 2013 07:51
- Forum: DOS Batch Forum
- Topic: Group in folder
- Replies: 12
- Views: 11060
Re: Group in folder
Hey buddy, it worked (in sendTo menu): @ECHO OFF SET FNAME=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2% [%TIME:~0,2%.%TIME:~3,2%.%TIME:~6,2%] md "%FNAME%" SETLOCAL :LOOP IF (%1) EQU () GOTO END move %1 "%FNAME%" SHIFT GOTO LOOP :END ENDLOCAL You can use it for registry shell menu too, j...
- 06 Sep 2013 06:37
- Forum: DOS Batch Forum
- Topic: Group in folder
- Replies: 12
- Views: 11060
Re: Group in folder
I did some search and I find that if I want do something on multiple files, using "Send to" menu in better option. So I create these batch files but they doesn't work. set FNAME=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2% [%TIME:~0,2%.%TIME:~3,2%.%TIME:~6,2%] md "%FNAME%" FOR /F "...
- 06 Sep 2013 02:41
- Forum: DOS Batch Forum
- Topic: Group in folder
- Replies: 12
- Views: 11060
Re: Group in folder
Hi penpen,
You know my batch scripting skill is poor, I think if we can do something like:
Code: Select all
set foldername=%%time%%
then use %%foldername%% instead of %%time%% our folder name can still unique on each grouping we do, off course if it was a batch file not registry.
- 05 Sep 2013 11:32
- Forum: DOS Batch Forum
- Topic: Group in folder
- Replies: 12
- Views: 11060
Re: Group in folder
Thanks penpen and foxidrive Dear penpen I used your commands and it worked. I was made something like this, but sometimes selected files were merged to one file. cmd /c md group|move "%1" group So I changed Command to this (I add ping as timer to have enough time for creating folder befor...
- 27 Aug 2013 01:19
- Forum: DOS Batch Forum
- Topic: Group in folder
- Replies: 12
- Views: 11060
Re: Group in folder
Sorry for my bold texts. As you know in this registry key we can add items to files context menu: HKEY_CLASSES_ROOT\*\shell\ and put the command of this item to this key: HKEY_CLASSES_ROOT\*\shell\My Item\Command So I need some commands to select several files and move them to one new folder (I pre...
- 19 Aug 2013 13:50
- Forum: DOS Batch Forum
- Topic: Group in folder
- Replies: 12
- Views: 11060
Group in folder
Hey guys I need some commands in registry HKEY_CLASSES_ROOT\*\shell\Group\Command to make a new folder and move selected items in this folder, so that seems like these files are grouped in one folder. I guess this should be some thinks like this: cmd /k mkdir %1|For %1 do move "%1" .\%1 P...