Search found 38 matches

by phoenix_Rising
12 Apr 2012 06:56
Forum: DOS Batch Forum
Topic: Batch question on deleting!
Replies: 28
Views: 18004

Re: Batch question on deleting!

I just created a file1.txt and file2.txt with a few lines of text in each and ran the code from the same folder but i got: "The System Cannot find the file specified." Let me give you a little background as to why im trying to do this within my batch... using the same files you have refere...
by phoenix_Rising
11 Apr 2012 08:29
Forum: DOS Batch Forum
Topic: Batch question on deleting!
Replies: 28
Views: 18004

Re: Batch question on deleting!

Ok the new problem is causing me all sorts of headache! I have this piece of example code i've been using: :MONKEYSDECOMPRESS cls @echo off echo. echo Now Decompressing APE... echo. DIR /B /S c:\OJW\TEMP\APE\*.ape >>c:\OJW\LOGS\MONKEYSPATH1.TXT DIR /B c:\OJW\TEMP\APE >>c:\OJW\LOGS\MONKEYSPATH2.TXT f...
by phoenix_Rising
10 Apr 2012 14:01
Forum: DOS Batch Forum
Topic: Batch question on deleting!
Replies: 28
Views: 18004

Re: Batch question on deleting!

OK guys - Foxi's cracked it but i have a second condundrum! This may be easier? I need to reference the text from two two text files and echo it to the screen. for example: test1.txt (has the following text in it) This is the first text line This is the second text line This is the third text line t...
by phoenix_Rising
10 Apr 2012 03:42
Forum: DOS Batch Forum
Topic: Batch question on deleting!
Replies: 28
Views: 18004

Re: Batch question on deleting!

Hey Foxidrive - I ammended the /b switch and it's looking good! I'm going to try some extensive testing this afternoon to see how it holds up but it looks really good! Thanks for all the help guys i really appreciate it. I'll let you know how it goes this evening... I have a funny feeling i might ha...
by phoenix_Rising
10 Apr 2012 02:00
Forum: DOS Batch Forum
Topic: Batch question on deleting!
Replies: 28
Views: 18004

Re: Batch question on deleting!

@Fawers - I know what your saying... I do like a challenge though! In the example that you gave i would say that because an .ape file was found the script should move on the to the next logical folder after c:\A and to ignore C:\A and all of its sib-directories. Given the same folder examples If a ....
by phoenix_Rising
09 Apr 2012 12:40
Forum: DOS Batch Forum
Topic: Batch question on deleting!
Replies: 28
Views: 18004

Re: Batch question on deleting!

Thanks guys, i've tried all the example code and nothings done it yet but i think were getting closer! @Foxidrive - I tried your example code a miunute ago, recreating the exact folder structure and loaded the c:\MUSIC\FLAC folder with a number of subdirectories and created dummy files with and with...
by phoenix_Rising
05 Apr 2012 03:47
Forum: DOS Batch Forum
Topic: Batch question on deleting!
Replies: 28
Views: 18004

Re: Batch question on deleting!

Thanks guys... sorry foxi if it wasnt too clear i was sooo tired when i wrote it! basically the example would be. IF the subfolders folders within C:\MUSIC\FLAC do NOT have a file with a .ape extension in them (Or any of there subdirectorys) THEN i want to delete it there root folder. As a further e...
by phoenix_Rising
04 Apr 2012 03:13
Forum: DOS Batch Forum
Topic: Batch question on deleting!
Replies: 28
Views: 18004

Batch question on deleting!

Hi guys, Im new to the board so please go easy! Basically i'm writing a batch file to delete folders that DONT have a file with a certain extension type in them... so for example if i have the following folder C:\MUSIC\FLAC\JAZZ\Jazzysong.ape i need a bit of code that can delete the folder JAZZ beca...