"Out of String Space" when generating large Reports

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
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: 14994
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
To see the attached files, you need to log into the forum.
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: 14994
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
To see the attached files, you need to log into the forum.
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: 14994
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