Search found 54 matches

by Matt20687
07 Feb 2013 15:00
Forum: DOS Batch Forum
Topic: Moving files depending on their size
Replies: 9
Views: 5671

Re: Moving files depending on their size

Ignore me lol
by Matt20687
07 Feb 2013 14:59
Forum: DOS Batch Forum
Topic: Moving files depending on their size
Replies: 9
Views: 5671

Re: Moving files depending on their size

Thanks for this but how does it still move the files that are under 3kb as well as running the .exe only once?
by Matt20687
07 Feb 2013 14:44
Forum: DOS Batch Forum
Topic: Moving files depending on their size
Replies: 9
Views: 5671

Re: Moving files depending on their size

Thanks. My code which works based on it moving files which are only 3kb in size to another folder works great. This is below set "movefolder=C:\Documents and Settings\Administrator\Desktop\Rogue Images Folder" set "dispatch=E:\Matt\Test\dispatch\*.*" for %%A in ("%dispatch%&...
by Matt20687
07 Feb 2013 09:11
Forum: DOS Batch Forum
Topic: Moving files depending on their size
Replies: 9
Views: 5671

Re: Moving files depending on their size

set "dispatch=C:\Users\Matthew\Desktop\MM Image Count\Test folder"

for %%A in (%dispatch%\*.*) do if %%~zA LEQ 3072 move "%%A" "C:\Users\Matthew\Desktop\MM Image Count\Movefolder"

So it should look like this?
by Matt20687
07 Feb 2013 08:47
Forum: DOS Batch Forum
Topic: Moving files depending on their size
Replies: 9
Views: 5671

Re: Moving files depending on their size

This is what i have so far, it moves all files in the folder rather than the ones that are under 3072 bytes. This is because i am defining the file as *.* i assume. I cannot figure out how to set the ones under 3072 bytes as a variable or something. set "dispatch=C:\Users\Matthew\Desktop\MM Ima...
by Matt20687
07 Feb 2013 08:32
Forum: DOS Batch Forum
Topic: Moving files depending on their size
Replies: 9
Views: 5671

Moving files depending on their size

Hello,

I am stuck and i hope you can help!

I am trying to create a batch file that will run on a schedule. It will check a folder and any files that are over 3072 bytes it will move it to another folder called Moved Files.

Does anyone know how to do this?
by Matt20687
02 Feb 2013 15:55
Forum: DOS Batch Forum
Topic: Read file size and echo to file?
Replies: 1
Views: 2003

Read file size and echo to file?

Hello, I am about to start a project and need to do some analysis work before starting. Basically what i need to do is to create a batch file that will check a folder that has multiple files coming in and out of it (downloading/uploading), it will be run every minute for 24 hours and will create a ....
by Matt20687
22 May 2012 05:14
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 15857

Re: ErrorLevel Command Required?

Download this tool and try the following. m set "mFinURL=%mURL1%%%G%mURL2%%%G%mURL3%" for /f "delims=" %%G in (id.txt) do ( wget --http-user=%IMSUSER% --http-password=%IMSPASS% --tries=10 -O - >> C:\Users\MatthewM.MEDICAGROUP\Desktop\UnreportorAssignBatch\%ims% %mFinURL% ) CLS s...
by Matt20687
22 May 2012 00:33
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 15857

Re: ErrorLevel Command Required?

Hello Foxi,

Bit of a pain, it seems HTMSTRIP only works on 32 bit. I cannot seem to find a 64 bit version anywhere, are you aware of any 64 versions?

Thanks,
Matt
by Matt20687
21 May 2012 07:58
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 15857

Re: ErrorLevel Command Required?

Hello Foxi, Works well on the first ID, when it moves onto the next it doesnt work. Here is the text it will be referring to when looking for %%z. </script><h2>Booking Management</h2><b>Procedures for </b><br><b>%%b</b><p><table class="infotab" cellpadding="4" cellspacing="1...
by Matt20687
21 May 2012 06:17
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 15857

Re: ErrorLevel Command Required?

Hell foxi,

It echos:

the extra line reports "'sed"

Just incase you miss it from the above, it is " 'sed"

Thanks,
Matt
by Matt20687
21 May 2012 05:24
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 15857

Re: ErrorLevel Command Required?

Try this: set "mFinURL=%mURL1%%%G%mURL2%%%G%mURL3%" for /f "delims=" %%G in (id.txt) do ( wget --http-user=%IMSUSER% --http-password=%IMSPASS% --tries=10 -O - >> C:\Users\MatthewM.MEDICAGROUP\Desktop\UnreportorAssignBatch\%ims% %mFinURL% ) CLS set "mFinSPS=%mURL1%%%b%mURL2%...
by Matt20687
18 May 2012 10:24
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 15857

Re: ErrorLevel Command Required?

Hello, Apologies the code was incorrect that i provided, i was look at a old version. The rules that i stated still apply but where the word Unreported lies is different. See below </script><h2>Booking Management</h2><b>Procedures for </b><br><b>%%b</b><p><table class="infotab" cellpadding...
by Matt20687
18 May 2012 09:40
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 15857

Re: ErrorLevel Command Required?

Hello, This is not working exactly how i wanted. It is searching for the word 'Unreported' in ims.txt. Foxi i need to be able to search for the word Unreported which is on the same line as the variable %%c which is the sps_id in the sed command. I do not know if it helps but the word unreported is l...
by Matt20687
16 May 2012 05:58
Forum: DOS Batch Forum
Topic: ErrorLevel Command Required?
Replies: 26
Views: 15857

Re: ErrorLevel Command Required?

I certainly agree with Foxidrive. You seem to be contradicting yourself. If the word Unreported does not occur in ims.txt i would like it to go back to MENU. If it is not in the ims file i need it to carry on with the loop. Sorry about the confusion!! The correct statement is if the word Unreported...