"Out of String Space" when generating large Reports

Things you’d like to miss in the future...
gernot.q
Posts: 10
Joined: 05 Jan 2021 12:54

Re: "Out of String Space" when generating large Reports

Post by gernot.q »

Thanks a lot, tested and working :)
This is almost perfect now - one thing left I would like to ask for:
Can we make a command line switch for the output path?
That way there is no user interaction necessary and I can run several jobs from a batch file.

I'll also make sure to do the donating thing again for troubling you so much :wink:

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: "Out of String Space" when generating large Reports

Post by highend »

You mean as a full path like: /dstFile="R:\log.csv"

I can do that...

Please note that with v0.1.0.4:

Code: Select all

01. /path was renamed to: /srcPath
02. /dateFormat was renamed to: /dateFmt
03. The new switch /dstFile was added
      a.) If you use it, no Save as file requester will be shown anymore
      b.) If the path part of it doesn't exist, it will fail with an error message
      c.) If .csv is used as the extension for the file, /useCSV will be set to 1 internally and can't be overridden by setting it to 0
Examples.:

Code: Select all

"Create folder report_x64.exe" /srcPath="C:\Windows" /dstFile="R:\log.txt" /dateFmt="%dd.%mm.%yyyy %hh:%ii:%ss" /useHash=0 /useCSV=1

REM /useCSV will be ignored because the file extension for /dstFile is set to .csv
"Create folder report_x64.exe" /srcPath="C:\Windows" /dstFile="R:\log.csv" /useHash=1
Create folder report_x64_v0.1.0.4.zip
(52.21 KiB) Downloaded 38 times
One of my scripts helped you out? Please donate via Paypal

gernot.q
Posts: 10
Joined: 05 Jan 2021 12:54

Re: "Out of String Space" when generating large Reports

Post by gernot.q »

Tested again. /dstFile Switch works :tup:
However, I have a little problem with using the command in a batch:

Image

Waiting for a key => not so good for batch processing ;)
My batch job was meant to run several disks in succession, preferably when I'm away or asleep.
So please can we get rid of the keypress?

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: "Out of String Space" when generating large Reports

Post by highend »

v0.1.0.5

It has another switch: /exitOnFinish=0|1
By default its internal value is 0 so for your case you need to supply it with /exitOnFinish=1

It will still show the stats at the end of the run and quits two seconds later if the switch value is 1
I hope you can live with the 2 seconds...
Create folder report_x64_v0.1.0.5.zip
(52.36 KiB) Downloaded 37 times
One of my scripts helped you out? Please donate via Paypal

gernot.q
Posts: 10
Joined: 05 Jan 2021 12:54

Re: "Out of String Space" when generating large Reports

Post by gernot.q »

Ugh finally weekend. Tested this in the meantime, and the switch works fine, thanks :)

PS: I can live with 2 seconds extra after 10 hours of indexing time :mrgreen:

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: "Out of String Space" when generating large Reports

Post by highend »

Ok :ninja:
One of my scripts helped you out? Please donate via Paypal

Post Reply