Search found 213 matches
- 25 Mar 2019 22:23
- Forum: Tips & Tricks, Questions & Answers
- Topic: Similar filename matches in a directory
- Replies: 17
- Views: 2652
Re: Similar filename matches in a directory
Well, I can't thank you enough for taking a look at it for me. I appreciate it. Would you be able to explain these lines to me though? I just want to be able to understand and learn from them. I understand the setting the variable part of the lines, and using the regexreplace, but I'm just not too g...
- 25 Mar 2019 21:25
- Forum: Tips & Tricks, Questions & Answers
- Topic: Similar filename matches in a directory
- Replies: 17
- Views: 2652
Re: Similar filename matches in a directory
In my list, I have a couple files named: 4567891a05000~-.txt 4567891d30000~-.txt For some reason it is matching "4567891a05000~-.txt" as one of the matching files, when really neither of these should be coming up as matching files because the first group (4567891) and the other group neede...
- 25 Mar 2019 01:08
- Forum: Tips & Tricks, Questions & Answers
- Topic: Similar filename matches in a directory
- Replies: 17
- Views: 2652
Re: Similar filename matches in a directory
Thanks, highend. This is really close, but for some reason it doesn't seem to only grab filenames that match 2 or more times for group 1 of the regex. It will sometimes grab the correct set where group 1 has two or more that are the same, but not consistently. I will try to see if I can figure it ou...
- 23 Mar 2019 13:30
- Forum: Tips & Tricks, Questions & Answers
- Topic: Similar filename matches in a directory
- Replies: 17
- Views: 2652
Re: Similar filename matches in a directory
Sorry about not describing it well enough. I hope the below helps. Using the example from above: 12345678a05001~a.ext 87654321a05002~b.ext 87654321a05003~c.ext 65432178b09000~b.ext The previous code worked great by capturing: 87654321a05002~b.ext 87654321a05003~c.ext So if they are divided in groups...
- 23 Mar 2019 01:15
- Forum: Tips & Tricks, Questions & Answers
- Topic: Similar filename matches in a directory
- Replies: 17
- Views: 2652
Re: Similar filename matches in a directory
Can the same thing be accomplished in the above code, but matching groups $1 & $5? Which the below regex could be used. I have been trying for a while now, but I'm just not able to figure it out.
([0-9a-zA-Z_.#\-]*)([a-zA-Z0-9]{3})([0-9]{3})(~)([0-9a-z\-]*)(\.)([a-z]*)
([0-9a-zA-Z_.#\-]*)([a-zA-Z0-9]{3})([0-9]{3})(~)([0-9a-z\-]*)(\.)([a-z]*)
- 16 Mar 2019 00:25
- Forum: Tips & Tricks, Questions & Answers
- Topic: Script levels
- Replies: 0
- Views: 1360
Script levels
In the Code box below is a copy from the manual regarding Levels, but I'm curious if there is a way for the lines that read: "Go to C:\|||1" goto "C:\"; if that can call another script file that could be used to generate that level, much like a cascading sub-menu? So the sub-menu...
- 10 Mar 2019 17:53
- Forum: Script Exchange
- Topic: Regex to remove first line in a text file
- Replies: 2
- Views: 1329
Re: Regex to remove first line in a text file
Thank you very much, highend!
With a little tweaking to some other lines, that worked out great!
With a little tweaking to some other lines, that worked out great!
- 10 Mar 2019 04:43
- Forum: Script Exchange
- Topic: Regex to remove first line in a text file
- Replies: 2
- Views: 1329
Regex to remove first line in a text file
Hello, I've been searching for a while and tried many things and having a difficult time coming up with the right regex to remove the first line of a text file. What I have is: $oldContent = readfile("$testFile"); $newContent = regexreplace($oldContent, "^([0-9a-zA-Z_.#\-]*[a-zA-Z0-9]...
- 09 Mar 2019 00:36
- Forum: Tips & Tricks, Questions & Answers
- Topic: Interpolation of Run command with variables
- Replies: 6
- Views: 1060
Re: Interpolation of Run command with variables
That did it!
Why the parenthesis only around what you did?
Thank you so much for your help, guys.
Why the parenthesis only around what you did?
Thank you so much for your help, guys.
- 08 Mar 2019 03:17
- Forum: Tips & Tricks, Questions & Answers
- Topic: Interpolation of Run command with variables
- Replies: 6
- Views: 1060
Re: Interpolation of Run command with variables
LOL, yes I did. Trust me, with as many ways as I have tried it, I was not going to mess up testing that option out.
Is there a way to interpolate the variables that I have defined within single quotes?
Is there a way to interpolate the variables that I have defined within single quotes?
- 08 Mar 2019 00:35
- Forum: Bug Reports
- Topic: Drag & Drop .EXE onto CMD window
- Replies: 12
- Views: 3625
Drag and Drop to Command Prompt
Is anyone else experiencing this?
In Windows 7 I am able to drag and drop a folder/file from XYplorer into the command prompt and it will paste the path in. But in Windows 10, I am not able to do this from XYplorer, though it does work if I drag and drop from Windows Explorer into a command prompt.
In Windows 7 I am able to drag and drop a folder/file from XYplorer into the command prompt and it will paste the path in. But in Windows 10, I am not able to do this from XYplorer, though it does work if I drag and drop from Windows Explorer into a command prompt.
- 08 Mar 2019 00:18
- Forum: Tips & Tricks, Questions & Answers
- Topic: Interpolation of Run command with variables
- Replies: 6
- Views: 1060
Re: Interpolation of Run command with variables
I tried as you suggested, but still get the following message: 'C:\Program' is not recognized as an internal or external command, operable program or batch file. Strange thing is, when I Run Script in Step Mode, at the point where it is going to run that command, the command looks perfectly set up, ...
- 07 Mar 2019 01:42
- Forum: Tips & Tricks, Questions & Answers
- Topic: Interpolation of Run command with variables
- Replies: 6
- Views: 1060
Interpolation of Run command with variables
Just wondering if anyone has any idea on how to get this to work? run 'cmd /c "c:\Program Files\blah\blah new\blah.exe" -list "$item" > $testFile'; Seems like any way that I want to quote it I can't get it to work. If I use single quotes, the the variables that I defined do not r...
- 15 Feb 2019 20:02
- Forum: Tips & Tricks, Questions & Answers
- Topic: Similar filename matches in a directory
- Replies: 17
- Views: 2652
Re: Similar filename matches in a directory
highend,
Thank you so much!
Thank you so much!
- 15 Feb 2019 19:03
- Forum: Tips & Tricks, Questions & Answers
- Topic: Similar filename matches in a directory
- Replies: 17
- Views: 2652
Re: Similar filename matches in a directory
highend,
I don't even know what to say except for amazing and thank you.
Just as an added bonus, if I had a certain set of three characters for the second grouping (i.e.: btr or imp), is there a way to exclude a set or two if needed? If not, I can very much work with what you have already done.
I don't even know what to say except for amazing and thank you.
Just as an added bonus, if I had a certain set of three characters for the second grouping (i.e.: btr or imp), is there a way to exclude a set or two if needed? If not, I can very much work with what you have already done.