Search found 15 matches

by goymerac
16 Sep 2012 20:36
Forum: DOS Batch Forum
Topic: Can I divide my result?
Replies: 13
Views: 13303

Re: Can I divide my result?

Just double checked and they're all .bat and .cmd
by goymerac
16 Sep 2012 20:09
Forum: DOS Batch Forum
Topic: Can I divide my result?
Replies: 13
Views: 13303

Re: Can I divide my result?

I'm working in the command prompt and driving to the appropriate drive and pasting the code in there and it just closes. when my command prompt looks like this E:\> I am pasting judago's code I tried pasting your code @echo off setlocal set "B=%~1" echo %B% B call judago-divide %B% 1024 K ...
by goymerac
16 Sep 2012 17:50
Forum: DOS Batch Forum
Topic: Can I divide my result?
Replies: 13
Views: 13303

Re: Can I divide my result?

Thanks, that seems a lot more in-depth than I was thinking. I'd just like to divide !G! by 1074? So what don't you understand about 32 bit integers. The example you provided is larger than the largest 32 bit integer that SET /A can handle. You have two choices. You either use the code I provided to...
by goymerac
16 Sep 2012 15:20
Forum: DOS Batch Forum
Topic: Can I divide my result?
Replies: 13
Views: 13303

Re: Can I divide my result?

Thanks, that seems a lot more in-depth than I was thinking. I'd just like to divide !G! by 1074?
by goymerac
16 Sep 2012 09:28
Forum: DOS Batch Forum
Topic: Can I divide my result?
Replies: 13
Views: 13303

Can I divide my result?

Hello, I am using a script to find the available bytes on a drive and spit it out into a .txt file. As I understand it math functionality is limited but I am wondering if there is a way to divide the answer I'm getting. I am currently using this script @echo off & setLocal EnableDELAYedeXpansion...
by goymerac
13 Sep 2012 11:39
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Re: Please help me create a txt

I appreciate all your tips. This is the first Batch file I have created, I am really enjoying the process and when things do exactly what I want them to, I want to scream and shout and show everyone how awesome this is (I don't think I'll ever get used to that). I'll definitely remember to give as m...
by goymerac
13 Sep 2012 11:10
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Re: Please help me create a txt

My apologies, I'm in completely new territory with this. Thanks for all your help.
by goymerac
13 Sep 2012 10:55
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Re: Please help me create a txt

By manipulating the environment variables I'm able to run a .bat, that is located on my C:, on an external hard drive ie E: when it is the active directory.
by goymerac
13 Sep 2012 10:33
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Re: Please help me create a txt

current directory
sorry still bad with commands
by goymerac
13 Sep 2012 10:28
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Re: Please help me create a txt

It works if I put the title.txt in the cd but it is on my c: and that is where i am running my .bat from too.
by goymerac
13 Sep 2012 10:26
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Re: Please help me create a txt

It places an empty line at the top and on the second line
ECHO is off.

the free space issue could be solved if there is a way to do simple math on !free! by dividing it by 1073741824?
by goymerac
13 Sep 2012 10:02
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Re: Please help me create a txt

[1] Title 1
[2] Title 2
by goymerac
13 Sep 2012 09:23
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Re: Please help me create a txt

I'm almost there. It won't let me select a title from my Title.txt file that's on my c drive in the same place as my .bat file. It is putting
~4 at the top, and is there a way to show the free space in GB?
by goymerac
13 Sep 2012 08:54
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Re: Please help me create a txt

Thank you for your reply. I am trying to list all the information in a txt that is created with the batch onto the current directory. I am trying to list only the folders in the current directory.
by goymerac
12 Sep 2012 19:22
Forum: DOS Batch Forum
Topic: Please help me create a txt
Replies: 23
Views: 14809

Please help me create a txt

Hi. I will start by admitting I love what batch files do but have no idea how they do it. I am trying to modify an existing .bat to do what I wish, but it is more difficult than I anticipated. I am attempting to create a .bat that will write a .txt to the active directory that lists the contents. I ...