Click here to Skip to main content
15,897,371 members

Comments by CDRxxx (Top 4 by date)

CDRxxx 8-Jul-19 14:47pm View    
Well, the question really is:
On a daily basis a textfile is generated with about a million strings (C:\Temp\NGDDIVlist.txt). Each string is in fact a record with two fields. The project needs to search this textfile for matches on field 0 of each record and has to do that for more or less 400.000 times. For the time being this is done using Instr, but I am looking for faster ways to do this. If I can split up the initial textfile in less longer subfiles, the Instr will take less time. Therefore these subfiles need to be named with the 'key' used for splitting. For this key I want to use the last two characters of field 0 of each record in the initial textfile. To build those subfiles fast, I want to use stringbuilders and since the 'key' = 2 characters, there are 36 x 36 = cases...
CDRxxx 28-Dec-17 9:35am View    
Thx for your help!! this is exactly what I was looking for, I mean the /Y ...
My solution looks now like
Process.Start("CMD", "/c net use * /delete /Y")
and it works as it shoud.
CDRxxx 27-Dec-17 15:33pm View    
Thx for this! Works fine...but do you know also how to make it autoexecute? (For now net use waits for confirmation to delete connections...)
CDRxxx 26-Feb-16 16:21pm View    
Why i want to this? To protect data from being read in memory by ... unallowed persons/programs/virusses etc...