topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday September 19, 2024, 1:43 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ath [ switch to compact view ]

Pages: prev1 ... 13 14 15 16 17 [18] 19 20 21 22 23 ... 145next
426
Now we are getting somewhere, sort of.

You only didn't tell what other parts of the data you need extracted from each record, besides the ui_mode field, and what the identifying field is that should go in the first column of the csv output you suggested earlier.


Is your second line a question?
Yes, 2 actually.

427
Now we are getting somewhere, sort of.

You only didn't tell what other parts of the data you need extracted from each record, besides the ui_mode field, and what the identifying field is that should go in the first column of the csv output you suggested earlier.

428
This example is totally useless. >:(

Please extract 2 or 3 of those (complete) product records from your actual data file. Optionally replace confidential stuff (data, prices)with aaaaa, bbbbb, 1.23, etc., but leave the structure exactly as it is!
Then post that here.

429
If you are searching for a regex within a regex, 'You Are Doing It Wrong' (T).

You initial requirement was to find and extract content using a regex, but now you need parts of that regex to be split out? That can be done using a single regex, grouping the stuff you need to split out.
And for this whole exersize to make any sense, where is the variable part of the data to find? When searching for explicit text(s), a count would suffice...
Please provide a complete example, with actual data (not an entire file!), clearly marking the stuff you need to extract, of what you want to achieve, not how you think it could/should be solved.

430
In the meantime I will read https://www.itprotod...course-you-can-learn
I expect you comprehend what's written there, it seems quite suited for powershell n00bs.

Thanks but I struggle to follow. I find AHK much more straight forward. But how can I make it work with a 25GB?
Please stop asking for an AHK solution, those that participated here sofar aren't going to provide it, as a perfect solution is already provided.

If you had tried the script at actual data, you wouldn't have asked again about the 'measily' 25 GB files; yes, ofcourse it will take some time to process, but so does an 18.8 minute powershell crash course.
Powershell is built on the foundation of .NET, so it knows how to handle files efficiently.

Why did you leave these rather important 'details' out in your original question?

Um .... because that's what he normally does ... it always takes at least a week, (sometimes longer or never), before all pertinent information is obtained ...
I know, I know, I'm just trying to educate someone (again, but it doesn't seem to be picked up much), see my quote below...

431
Also, I need to append to the output file several regex matches/returns, how do I do that?
Also, if I specify a regex match, how do I specify what I want to be returned from this match?
Why did you leave these rather important 'details' out in your original question?

432
The scriptlanguage used is Microsoft's PowerShell, the aimed successor of cmd with its relatively poor language batch (.bat/.cmd) scripts, that comes standard installed with Win10, Win8.1 and Win8, and can easily be installed on older Windows versions.

Copy the script to a file with .ps1 extension, adjust the 1st line to your desired resultsfile, adjust in the 3rd line *.txt to the extension of your data files, press the Start button and start typing powershell to find that, then run the script from the directory where your data files are.
Largish files are no issue for PowerShell.

433
And if the OP feels really adventurous, he could try to use PowerShell, it seems to handle XML quite nicely, like I found in this ServerFault item, but it helps if you speak XPath, I guess...

You could also use an online one.

https://codebeautify.org/xmlviewer
It doesn't have much of the features the OP asked, though, and I'm a bit worried how/if it will handle a large xml file...

434
is there an XML reader that can extract the hierarchy tree of a specific line?
I use Notepad++ with plug-ins "XML Tools" and "Npp XML Treeview". The XML Tools plug-in has a nice and quick formatting feature (Ctrl-Alt-Shift-B), XPath expression evaluation and it shows the path to the current node when pressing Ctrl-Alt-Shift-P. With the treeview plug-in you can see the structure of the xml nodes (but not the attributes), and quickly select a node.

If that doesn't suffice, there's always XML Copy Editor, an open source specialized XML editor with a lot of features, including XSLT and XPath support. I hardly use it but it does offer some features not easily available in Notepad++ with it's plug-ins.

436
I think I have come up with my own solution
But what makes you think that your users won't know how to stop this AHK script (right-click, exit, or kill it from task manager) so they can still mess around with the LBC settings... This has been my concern since you requested this and why I responded like I did. I'd call this a temporary workaround, at most.

437
I'd go for the lighter color. It'll get a little darker when the second coat is applied, and probably a bit more when the protective finish is added, again in 2 layers. And most likely it wil go a tad darker over time as it ages by the (sun) light. Plus, if you dislike the light color, you can darken it later, that's not possible when starting with the dark color.
Long story short: lighter looks nicer. :up:

438
Have you seriously taken a look at mouser's Clipboard Help and Spell?

The power there lies in all the points mentioned on that page, but it does take a bit of time to get acquainted with. Be sure to study the help and demo video's.

439
Do you have a set of example lists? And point out how you'd like things to match/group?

440
It was a beta indeed, not a release, sorry for the confusion :huh:

441
@Erich56, have you already downloaded and used the latest PT as released this week?

442
N.A.N.Y. 2016 / Re: ScreenshotCaptor (Link) in autostart
« on: June 27, 2018, 05:58 AM »
mouser could create a small Registration-Fixer for this situation
Please mind, this is not an application 'error', more of an anomaly of Windows itself.
Happens to other applications as well and depends on the local Windows installation, even though these applications write the settings there correctly...

443
N.A.N.Y. 2016 / Re: ScreenshotCaptor (Link) in autostart
« on: June 27, 2018, 03:44 AM »
I still assume it's a Windows thingy, other applications don't get started, even though their autostart is on, or link in Startup folder available :(

444
Sent the info to a (Windows hosting deployment) colleague, and he was a bit worried it might have a backdoor, now that it's turned into freeware... Anyone tried it in a walled garden yet, to see if it phones home?

445
N.A.N.Y. 2016 / Re: ScreenshotCaptor (Link) in autostart
« on: June 26, 2018, 05:05 AM »
Just a guess: Windows 10, with all the latest updates? For some reason Windows 'forgets' to start some applications configured this way, I'm still hoping that it will get fixed, some day, but I'm not holding my breath...

446
yes, I have considered my NAS structure over and over again

Well, that was the type of answer I was looking for: You have a very well motivated reason to continue in this way. Thnx, but it wasn't obvious from your OP. ;)

447
If you wonder why i use Streams for read/write
Well, though I appreciate your effort, I'm on the same page as @mouser: I'd like to copy/move the file as safe as possible, so using Operating System native tools has my preference. Even if that means I have to use other tools for copying files from a damaged source. In that case there are wholly different problems to solve :tellme:
Offering an option to use SHFileOperation calls will be my standard setting, might I need/use this tool.

Transferring attributes and timestamps when moving/copying files is still a priority (in my case: requirement, with exceptions as stated in a previous post), independent of the way the file is copied. The few milliseconds of setting them is almost neglectable compared to the time transferring the data, or updating the UI (appending a line into a text control?) for that matter.

448
I have added the commandline option "-capturemon #" to minicap, it will be in next upload.
To ease the use of this new feature I wrote a CMD script to capture multiple monitors to multiple files, as close in time as possible:
(only used PowerShell code highlighter for readability)
Change any settings to your likings, can be fired from a AHK hotkey script, optional parameter: nr. of monitors to capture sequentially, defaults to 2
Code: PowerShell [Select]
  1. @echo off
  2. :: MultiMonitorShot.cmd: Grab multiple monitors screenshots to separate files
  3. :: Usage: MultiMonitorShot [monitors]
  4. :: Monitors defaults to 2
  5. :: Settings:
  6. :: Number of monitors to capture, override with 1st argument to script
  7. set SSCOUNT=2
  8. if not "%1" == "" set SSCOUNT=%1
  9. :: Screenshot storage path, including a trailing \ when not empty
  10. set SSPATH=
  11. :: Filename and monitor prefixes
  12. set SSPREFIX=screenshot
  13. set SSMONPREFIX=monitor
  14. :: Extension, not including the period
  15. set SSFILETYPE=png
  16. :: Set date format using variables as in https://www.donationcoder.com/software/mouser/popular-apps/minicap#commandline-options
  17. :: Initially set to YYYY-mm-DD-HH-MM-SS
  18. set SSDATE=$dt:%%Y-%%m-%%d-%%H-%%M-%%S$
  19. :: Aditional MiniCap options can be specified here
  20. set MCOPTIONS=
  21. :: Path to MiniCap.exe, include trailing \ if not empty
  22. set MCPATH=
  23. :: ----------------------------------
  24. :: Leave the rest of the script as is
  25. setlocal EnableDelayedExpansion
  26. set /a LMAX=%SSCOUNT%-1
  27. :: Start multiple MiniCap instances in parallel to get screenshots as close in time as possible
  28. for /l %%N in (0,1,%LMAX%) do (
  29.         set /a O=%%N+1
  30.         start %MCPATH%MiniCap.exe -save "%SSPATH%%SSPREFIX%-%SSDATE%-%SSMONPREFIX%-!O!.%SSFILETYPE%" -capturemon %%N -exit -stderr %MCOPTIONS%
  31.         REM Append the part after the colon to the previous line for logging any errors: >>"%0.%%N.errorlog"
  32. )

Edit1: Modified to number the screenshots according to the Windows monitor numbers (1..n) instead of from 0 to n-1
Edit2: Fixed setting to not have a double period before the extension
Edit3: Added setting for additional MiniCap options

449
I want a file to move a bunch of files from G:\Source on my windows 10 computer
to the following 12 hard drives on my NAS
A question that I should have formulated earlier:
Why haven't you configured your NAS to present all those harddrives as a single logical volume? Optionally adding (checksum) redundancy by configuring it to use RAID? Several RAID configurations can usually be selected in most NAS systems, even if only running from software instead of a hardware RAID controller. If you want to maximize storage availability, JBOD instead of RAID could have solved this too.

You might want to share your NAS make and model so help on this subject can be provided on request.

450
Should targetfiles have original fileattributes or do you wish for example remove/set Read-Only/Hidden attributes to a specific attribute?
If there are options to change attributes after copying, then those should apply, but otherwise, not preserving attributes (except the Archive bit) I'd probably report as a bug...

Must targetfiles have same Datestamp? (ATM target would get a fresh/new timestamp)
As this is supposed to be a copy/move tool, IMHO, it should be compatible with Windows, and keep the original timestamps like a normal copy would. Again, I'd report it as a bug if it didn't... despite the limited value of file timestamps.

Different but related topic:
Have you thought about the Alternate Data Streams (ADS) that can be stored on the NTFS filesystem? (Available since Windows 2000) They should be copied/moved when the destination filesystem is also NTFS, and probably/optionally give a warning or not delete the source when moving, when ADS's are found. A simple "dir /r" in a cmd prompt will show any ADS's for files that have them (try that in your Downloads folder..., NirSoft's AlternateStreamViewer can show you their content)

Pages: prev1 ... 13 14 15 16 17 [18] 19 20 21 22 23 ... 145next