Search found 503 matches
- 16 Jan 2013 04:58
- Forum: DOS Batch Forum
- Topic: Difference in speed in redirection left/right?
- Replies: 2
- Views: 2715
Re: Difference in speed in redirection left/right?
Thanks jeb for reply.
- 16 Jan 2013 04:57
- Forum: DOS Batch Forum
- Topic: Output text without linefeed, even with leading space or =
- Replies: 18
- Views: 36357
Re: Output text without linefeed, even with leading space or
I redirect the output of the jeb script and it is clean, the file have not the 26 ascii character. I posted a simplified version avoid a copy, but i removed it because without the copy jeb trick and only using the type command that stop when it found the SUB character the binary ouput will have the ...
- 15 Jan 2013 22:36
- Forum: DOS Batch Forum
- Topic: Difference in speed in redirection left/right?
- Replies: 2
- Views: 2715
Difference in speed in redirection left/right?
I always would ask this.
Is there a significant difference in speed between use:
and:
In the first the redirection is specified in left and in the second in right.
Is there a significant difference in speed between use:
Code: Select all
> txt.tmp (echo(Text)
and:
Code: Select all
echo(Text> txt.tmp
In the first the redirection is specified in left and in the second in right.
- 15 Jan 2013 22:34
- Forum: DOS Batch Forum
- Topic: Output text without linefeed, even with leading space or =
- Replies: 18
- Views: 36357
Re: Output text without linefeed, even with trailing space o
Thanks jeb for teach this technique.
- 15 Jan 2013 02:18
- Forum: DOS Batch Forum
- Topic: SET /P prompt mechanics - New behavior: = makes syntax error
- Replies: 13
- Views: 22862
Re: SET /P prompt mechanics - New behavior: = makes syntax e
A fix for the problem:
Code: Select all
@Echo Off
For /F %%# in ('"Prompt;$H;&For %%_ in (1) Do Rem"'
) Do Set "\b=%%#"
Set /P "=%\b%=Equal" <Nul
Pause >Nul
- 09 Jan 2013 18:31
- Forum: DOS Batch Forum
- Topic: Bhx 3.1
- Replies: 35
- Views: 28204
Re: [utility] Bhx 2.0
Posted version 2.0.
- 09 Jan 2013 12:00
- Forum: DOS Batch Forum
- Topic: [Undocumented] Expand.exe
- Replies: 4
- Views: 6222
Re: [Undocumented] Expand.exe
Updated the first post adding note about expand version of windows nt.
- 04 Jan 2013 09:40
- Forum: DOS Batch Forum
- Topic: [Undocumented] Expand.exe
- Replies: 4
- Views: 6222
Re: [Undocumented] Expand.exe
[Continuation] Now. I write about the option -D of Expand.exe. This option show a list of the files that have a cabinet file. But this option have a little problem. It not show the full path of the file. Files inside a cabinet file can have a path name (not absolute path). This means that inside a c...
- 04 Jan 2013 09:09
- Forum: DOS Batch Forum
- Topic: [Undocumented] Expand.exe
- Replies: 4
- Views: 6222
Re: [Undocumented] Expand.exe
Roger, really NONE is a compression type option, but it not compress. I add the info of choose this option with makecab.exe (/D Compress=Off)
- 27 Dec 2012 21:50
- Forum: DOS Batch Forum
- Topic: Encrypting data for a batch file
- Replies: 12
- Views: 9586
Re: Encrypting data for a batch file
maybe you want encode, not encrypt.
encrypt should be hard in batch because is slow and have some limitations.
encrypt should be hard in batch because is slow and have some limitations.
- 27 Dec 2012 17:43
- Forum: DOS Batch Forum
- Topic: New bug in FOR command?
- Replies: 19
- Views: 13116
Re: New bug in FOR command?
The difference is similar to this: You open a file for read. You read entirely and keep in memory, then if other application do a change in the file you are not reading from the file, you are reading from you buffer that is a copy of the file when you read it. Other way is open the file for read and...
- 27 Dec 2012 17:34
- Forum: DOS Batch Forum
- Topic: New bug in FOR command?
- Replies: 19
- Views: 13116
Re: New bug in FOR command?
I understand the problem. For /f and For works different. For example if you use: For /F %%a in ('Dir /b *.jpg') this execute the command and save all the text output. Then you have a list static. When you use: For %%a in (*.jpg) this not keep in memory a list, it look in the hard disk every time, t...
- 22 Dec 2012 23:01
- Forum: DOS Batch Forum
- Topic: Writing an exe via batch
- Replies: 13
- Views: 8674
Re: Writing an exe via batch
For example. Read and run this batch: @Echo OFF Rem Creating a file Echo This is a text file>file.txt Rem Getting the size of the file For %%# in (file.txt) do set "size=%%~z#" Rem Debug begin in offset 256 (0x100) , Rem then plus it to size to get a offset max Rem also minus 1 Set /a &quo...
- 22 Dec 2012 22:45
- Forum: DOS Batch Forum
- Topic: Writing an exe via batch
- Replies: 13
- Views: 8674
Re: Writing an exe via batch
The advantage of use the scripts generated by BHX is that it use vbscript, then you can rebuild the binary in windows systems of 32 and 64 bits. But, if you only want that the make of the binary file be in a windows of 32 bits also you can do it whith debug.exe. Before BHX I build binary data with d...
- 20 Dec 2012 23:07
- Forum: DOS Batch Forum
- Topic: Bhx 3.1
- Replies: 35
- Views: 28204
Bhx 3.1
This version was deprecated because bugs and the latest version is found here:
http://www.dostips.com/forum/viewtopic.php?f=3&t=6400
http://www.dostips.com/forum/viewtopic.php?f=3&t=6400