Search found 357 matches
- 24 Mar 2012 15:01
- Forum: DOS Batch Forum
- Topic: Why? File Read in HALF the time by using extraneous )> %2
- Replies: 24
- Views: 17361
Re: Why? File Read in HALF the time by using extraneous )> %
My son works in I.T. support and he visited us for a short weekend in which he gave me the SSD and set it up for me. It took him less time to complete the job than I would have taken to remove the P.C. covers and figure out which bay to plug it in. I do not know what he did, but am satisfied it was ...
- 24 Mar 2012 04:57
- Forum: DOS Batch Forum
- Topic: Why? File Read in HALF the time by using extraneous )> %2
- Replies: 24
- Views: 17361
Re: Why? File Read in HALF the time by using extraneous )> %
I can now report that although my new SSD has halved the time taken from selecting which O.S. to the presentation of the login screen, and although my notification tray populates with all 7 icons in 1 second instead of a gradual 6 second procession, my script runs perhaps 3% SLOWER than it did when ...
- 18 Mar 2012 14:59
- Forum: DOS Batch Forum
- Topic: Why? File Read in HALF the time by using extraneous )> %2
- Replies: 24
- Views: 17361
Re: Why? File Read in HALF the time by using extraneous )> %
The results you got when removing parentheses from my test case are totally expected. Outer parentheses redirection is executed once. Redirection within the loop is executed with each iteration, and it takes time to set up the redirection. That is why in other threads we have recommended to use the...
- 01 Mar 2012 13:25
- Forum: DOS Batch Forum
- Topic: Find a string and create new files
- Replies: 13
- Views: 9621
Re: Find a string and create new files
The requirement seems impossible How about 02-12-2012 00:00:00 02-12-2012 00:00:00 Kathy CBJ LBU SOH The Possible interpretations include :- Name = "Kathy CBJ LBU" ; Company = "SOH" Name = "Kathy CBJ" ; Company = "LBU" ; ID = "SOH" Name = "Kathy...
- 01 Mar 2012 11:18
- Forum: DOS Batch Forum
- Topic: Find a string and create new files
- Replies: 13
- Views: 9621
Re: Find a string and create new files
we have company names as CBJ, LBU, SOH. The script should search the incoming.txt file for the company name CBJ and create a new file called CBJ.txt with the output of findstr "CBJ" in it and then move it from C:\temp\incoming.txt to D:\temp\CBJ.txt. And then search for company string LBU...
- 29 Feb 2012 03:37
- Forum: DOS Batch Forum
- Topic: copy a file to all users profile desktop
- Replies: 15
- Views: 24923
Re: copy a file to all users profile desktop
I suggest a total rethink would give an easier solution, and even be essential. Proposal :- On each P.C. make available only one instance that is write protected and in a location accessible to all. This could be a copy of your master file, or even a link via the network so that when you update the ...
- 27 Feb 2012 13:18
- Forum: DOS Batch Forum
- Topic: Batch File to EXE and Hide Files
- Replies: 16
- Views: 14589
Re: Batch File to EXE and Hide Files
TrueCrypt will encrypt partitions or folders or possible files to render inaccessible any information on the disc. It will decrypt and supply the original in plain text/code without placing the plain text/code on the disc. I think the technology exists to prevent the average user from gaining access...
- 27 Feb 2012 06:00
- Forum: DOS Batch Forum
- Topic: Why does my script run at half speed after the first run
- Replies: 1
- Views: 2593
Re: Why does my script run at half speed after the first run
My previous code was fully functional and did the job, but was rushed out before I went to bed. I have now seen and corrected some typos and greatly improved the structure of the code. The results with my new code are identical to the old code. To avoid confusion I am placing my new code here, and r...
- 26 Feb 2012 16:28
- Forum: DOS Batch Forum
- Topic: Why does my script run at half speed after the first run
- Replies: 1
- Views: 2593
Why does my script run at half speed after the first run
The Script TickTock.bat below can make a very rapid measurement of a interval of time between one %TICK% or %TOCK% and the next %TOCK% It does this by executing code within a variable, and is about 15 times faster than when I used "CALL :TOCK" to run code at the bottom of the script. It ca...
- 26 Feb 2012 15:20
- Forum: DOS Batch Forum
- Topic: Wait until application finished
- Replies: 16
- Views: 18393
Re: Wait until application finished
Are you sure Passcrypt.exe is good and safe ? The nice thing about knowing a specific name is that Google may tell us useful information to resolve problems. In this particular case I gained no such problem resolution, but an awful lot of results, many suggesting it was harmless and others suggestin...
- 26 Feb 2012 08:41
- Forum: DOS Batch Forum
- Topic: Why? File Read in HALF the time by using extraneous )> %2
- Replies: 24
- Views: 17361
Re: Why? File Read in HALF the time by using extraneous )> %
My first attempt at :X8 was much faster than 990 mSec but then I looked at the sizes of the files just created, and realized I should not have simply shifted the location of "> %2" I should have given it another ">" 771 repetitions of this ECHO %%j !LN!>> %2 takes much longer tha...
- 25 Feb 2012 10:33
- Forum: DOS Batch Forum
- Topic: run a (16-bit) .COM executable that has been renamed
- Replies: 7
- Views: 9428
Re: run a (16-bit) .COM executable that has been renamed
they are stored on read-only media and I can't copy them (special environment). That really merits explanation. What is "read-only media" ? Is it a CD or DVD, or a Flash Drive with a Write Protection switch or some autoruns/INF type of Intercept that overpowers the ability of Windows to w...
- 25 Feb 2012 10:08
- Forum: DOS Batch Forum
- Topic: Why? File Read in HALF the time by using extraneous )> %2
- Replies: 24
- Views: 17361
Re: Why? File Read in HALF the time by using extraneous )> %
Thanks for the feedback. I observe that :- :Y7 is 20% faster than :X4 on your system and 25% faster on mine. Conclusion :- When outputting whilst reading, Execution Time of a single loop is proportional to the number of lines of code executed That we have in common. :Y5 is 25% faster than :X4 on you...
- 25 Feb 2012 06:05
- Forum: DOS Batch Forum
- Topic: Why? File Read in HALF the time by using extraneous )> %2
- Replies: 24
- Views: 17361
Re: Why? File Read in HALF the time by using extraneous )> %
My file Input.txt can be downloaded via m I find that the correct syntax for output via SET /P is SET /P "LN= Output Text" My new test case :Y7 demonstrates with SET /P "LN= %%j, !LN!" My new code produces this output E:\T\CCleaner\New\SRx2\#TRIMMER>] FILE ].bat CREATED 19:06 22/...
- 25 Feb 2012 03:20
- Forum: DOS Batch Forum
- Topic: Why? File Read in HALF the time by using extraneous )> %2
- Replies: 24
- Views: 17361
Re: Why? File Read in HALF the time by using extraneous )> %
Thanks, yes I will upload - but not DropBox. I think it was DropBox that my son used for our grandchildren's photos. I installed DropBox (or whatever it was) and subsequently discovered my context menus became elusive jittery phantoms. I use AutoRuns and that showed my that DropBox had sunk TEN diff...