Search found 8 matches

by dobbies
14 Feb 2013 13:57
Forum: DOS Batch Forum
Topic: Assistance please with batch file to delete empty folders
Replies: 4
Views: 4447

Re: Assistance please with batch file to delete empty folder

@echo off dir /ad /b /s |sort /r >tmp.tmp for /f "delims=" %%a in (tmp.tmp) do rd "%%a" 2>nul del tmp.tmp Thank you very much for your reply foxidrive, it works just fine run from the folder in question. If I wanted to store and run this batch file from a central folder to delet...
by dobbies
14 Feb 2013 04:29
Forum: DOS Batch Forum
Topic: Assistance please with batch file to delete empty folders
Replies: 4
Views: 4447

Assistance please with batch file to delete empty folders

Hi Could someone please offer me a batch file that will delete all empty folders and subfolders in a designated place. The reason is that I have a backup program that is set to perform incremental backups every day but in doing so it copies every folder & subfolder on the destination drive even ...
by dobbies
01 Feb 2013 05:22
Forum: DOS Batch Forum
Topic: Help please to link two simple commands
Replies: 10
Views: 8609

Re: Help please to link two simple commands

I tried the code from (adc0502) and for some reason after executing the batch file I was left with two empty folders, both (alldayvideo) & (alldayvideostorage).

I then tried yours shirulkar and it worked perfectly.

Thank you so much guys for your time and help.

Dobbies
UK
by dobbies
31 Jan 2013 02:13
Forum: DOS Batch Forum
Topic: Help please to link two simple commands
Replies: 10
Views: 8609

Re: Help please to link two simple commands

Thanks you both abc0502 & shirulkar for your replies. I have yet to test the code from abc0502 which I'll be doing shortly and post the result. In answer to shirulkar. OR "c:\wdisplay\alldayvideostorage\%name%" you want to store all files or only 20th,40th.....file? It's the ["c:\...
by dobbies
30 Jan 2013 14:15
Forum: DOS Batch Forum
Topic: Help please to link two simple commands
Replies: 10
Views: 8609

Re: Help please to link three simple commands

Hi @echo off set Counter=0 for /f "tokens=*" %%f in ('DIR /b /s /O:D c:\alldayvideo') do call :p "%%f" del c:\alldayvideo\*.jpg Exit /b :p set /a Counter+=1 set /a X=Counter %% 3 echo %1 if %X%==0 move %1 c:\tmp Exit /b After that great response from Shirulkar, could I add yet an...
by dobbies
30 Jan 2013 05:27
Forum: DOS Batch Forum
Topic: Help please to link two simple commands
Replies: 10
Views: 8609

Re: Help please to link two simple commands

Thank you very much for your prompt reply Shirulkar.

The code works perfectly and makes my life a little easier.

cheers 8)
by dobbies
30 Jan 2013 02:49
Forum: DOS Batch Forum
Topic: Help please to link two simple commands
Replies: 10
Views: 8609

Help please to link two simple commands

Hi I run a webcam that takes an image every 5 seconds within daylight hours and creates around 6000 images throughout the day. When the webcam shuts down I have two batch files that help me sort these files out. The first file is called (sort.bat) which removes every 20th file from a folder called (...