Search found 160 matches
- 06 Jun 2012 12:54
- Forum: DOS Batch Forum
- Topic: Desperate to change command window buffer size or alternate
- Replies: 3
- Views: 7058
Desperate to change command window buffer size or alternate
To my horror, I just realized that the text color changing utility (as well as other ones I've tried) have a strange bug in it which requires the command window's vertical buffer size to be large enough in order for colors to be displayed correctly. I didn't notice this bug since I always have my bu...
- 04 Jun 2012 19:18
- Forum: DOS Batch Forum
- Topic: How to list directory file and size; including subdirs
- Replies: 21
- Views: 17366
Re: How to list directory file and size; including subdirs
Dave, what you said went completely over my head. Im trying to understand how what you put would integrate into: for /F "delims=" %%a in ('dir "a:\" /a-d /b /s') do ( set "size=..............................%%~za" call set "%%size:~-30%%=%%a %%~za" ) (for /F &...
- 04 Jun 2012 17:33
- Forum: DOS Batch Forum
- Topic: How to list directory file and size; including subdirs
- Replies: 21
- Views: 17366
Re: How to list directory file and size; including subdirs
So, what would happen if there are two files in the list with the same size? The only way I see this happening is the same file in two different directories; which could easily happen.
However, I doubt there will be any files that would ever have an = symbol.
However, I doubt there will be any files that would ever have an = symbol.
- 04 Jun 2012 16:23
- Forum: DOS Batch Forum
- Topic: How to list directory file and size; including subdirs
- Replies: 21
- Views: 17366
Re: How to list directory file and size; including subdirs
Works beautifully. Thanks guys!
- 04 Jun 2012 16:15
- Forum: DOS Batch Forum
- Topic: How to list directory file and size; including subdirs
- Replies: 21
- Views: 17366
Re: How to list directory file and size; including subdirs
Sorry go cause so much problems... It looks like there's a problem with the sorting code. It skips anything that's greater than 99999999999 (99.99GB) For example, the below number (167GB's) is skipped during sorting. I'm guessing because of the extra digit. Is there any way to get past this limit? I...
- 04 Jun 2012 15:52
- Forum: DOS Batch Forum
- Topic: How to list directory file and size; including subdirs
- Replies: 21
- Views: 17366
Re: How to list directory file and size; including subdirs
agerman, the last code you posted was returning errors for some of the items it was processing: Invalid number. Numbers are limited to 32-bits of precision. Invalid number. Numbers are limited to 32-bits of precision. Invalid number. Numbers are limited to 32-bits of precision. Invalid number. Numbe...
- 04 Jun 2012 15:03
- Forum: DOS Batch Forum
- Topic: How to list directory file and size; including subdirs
- Replies: 21
- Views: 17366
Re: How to list directory file and size; including subdirs
I just found out that there's something wrong with Antonio's sorting code. It seems to have the same problem as the output from >list.txt ( for /f "delims=" %%i in ('dir "a:\" /a-d /b /o-s /s') do echo %%i %%~zi ) They are being sorted by size; however, only per each respective f...
- 04 Jun 2012 14:07
- Forum: DOS Batch Forum
- Topic: How to list directory file and size; including subdirs
- Replies: 21
- Views: 17366
Re: How to list directory file and size; including subdirs
Thanks aGerman! I'm guessing that there's no way to sort the entire list by size in the first try. Currently, it sorts each folder's contents by size. Apparently, this is a limitation with the DIR command. If there's no way to do this in the first try, then, I can use a handy piece of code that &quo...
- 04 Jun 2012 12:27
- Forum: DOS Batch Forum
- Topic: How to list directory file and size; including subdirs
- Replies: 21
- Views: 17366
How to list directory file and size; including subdirs
I just found out the hard way that the command forefiles has a file size bug in it (where it returns the wrong file size for very large files). So... I would like to do what I should have done in the first place... use an alternate method to have more flexibility. However, I need a help recreate the...
- 01 Jun 2012 15:48
- Forum: DOS Batch Forum
- Topic: Echoing text in same position on screen
- Replies: 2
- Views: 3126
Echoing text in same position on screen
What's the simplest way to place the the OS: [Windows Server 2003] below to always be 4 spaces in from the right-most part of an 80column command window (following the preceding text below)? If %UserInput% (%location%) had a fixed length, I wouldn't have a problem. I do have a little bit of flexibil...
- 31 May 2012 22:07
- Forum: DOS Batch Forum
- Topic: Any way to identify an application by Window title?
- Replies: 4
- Views: 9039
Re: Any way to identify an application by Window title?
Hopefully, that should go without saying. Tasklist /?, as well as, and the first couple of MS website didn't have any real-life examples I could follow. Luckily, I found a URL which used this command in a normal real-life example. Pretty sure if you read the help from the cmd window you could see so...
- 31 May 2012 16:37
- Forum: DOS Batch Forum
- Topic: Any way to identify an application by Window title?
- Replies: 4
- Views: 9039
Re: Any way to identify an application by Window title?
I think I got it! I was almost there...
tasklist /fi "WINDOWTITLE eq Logs"
tasklist /fi "WINDOWTITLE eq Logs"
- 31 May 2012 16:34
- Forum: DOS Batch Forum
- Topic: Any way to identify an application by Window title?
- Replies: 4
- Views: 9039
Any way to identify an application by Window title?
Is there a way to identify a process by it's window title? Specifically, I need a batch file to close a specific Explorer window with the title Logs I'm not sure if the tasklist command can do it. It does mention WINDOWTITLE. However, I couldn't find one good example to try when searching on google....
- 28 May 2012 12:12
- Forum: DOS Batch Forum
- Topic: Looking for a way to show Splash Screen logo
- Replies: 6
- Views: 16755
Re: Looking for a way to show Splash Screen logo
I am finding out lately that I using autoit a lot more to supplement what DOS/Batch-->EXE cant handle; such as in this case. For larger programs that need a UI, I would definitely use something like C#
- 27 May 2012 22:14
- Forum: DOS Batch Forum
- Topic: Looking for a way to show Splash Screen logo
- Replies: 6
- Views: 16755
Re: Looking for a way to show Splash Screen logo
Wow agerman, it works very well. Unfortunately, I ran into a problem which you may not be able to help me. I convert/package almost all my scripts to EXE's (using bat to exe converters such as QuickBFC). This is to package them into single files for easy portability. For some odd reason your script ...