Search found 235 matches
- 06 Feb 2023, 00:12
- Forum: Ask for Help (v1)
- Topic: Array or Variable Issue
- Replies: 7
- Views: 590
Re: Array or Variable Issue
I am not a big coder. I've dabbled with it for years and written many little scripts to help me with my day to day. @mikeyww has helped me with issues for a long time, and I have greatly appreciated his assistance and learned a lot from him. I haven't grasped the concept/usage of arrays yet, but I t...
- 05 Feb 2023, 21:01
- Forum: Ask for Help (v1)
- Topic: Array or Variable Issue
- Replies: 7
- Views: 590
Re: Array or Variable Issue
Well, boiler, you are indeed correct. However, if you look, I've been a member of this forum for years (prior to chatgpt). I don't think there is anything wrong with trying to leverage Chatgpt for help with something as I did. I'm not a savvy coder, but have been doing my best. If you're bothered by...
- 05 Feb 2023, 16:25
- Forum: Ask for Help (v1)
- Topic: Array or Variable Issue
- Replies: 7
- Views: 590
Array or Variable Issue
I'm having some issues with the "check if file exists" and "check if file is a folder" validation steps of my code. I learn a lot better with code examples or edits to my own code, so please provide example code so I can see an recommendations in action. #NoEnv ; Recommended for performance and comp...
- 05 Jan 2023, 00:49
- Forum: Ask for Help (v1)
- Topic: comspec not working
- Replies: 3
- Views: 303
Re: comspec not working
For some reason, it was not recognizing the robocopy app (even though it was in the Windows\System32 directory). By doing the following, it worked. If IncludeFolder = 0 { command = cd C`:`\Windows`\system32 && `"robocopy.exe`" `"%source%`" `"%destination%`" `/e `/tee `/ts `/v `/fp `/np `/copy`:dat `...
- 02 Jan 2023, 22:48
- Forum: Ask for Help (v1)
- Topic: comspec not working
- Replies: 3
- Views: 303
comspec not working
I have a GUI robocopy script (yes I know there are others, but I want to do my own). I know the final command is operational - as I outputted it to a file and ran it manually. However, there seems to be some issues with comspec not running the command directly. I get a "The filename, directory name,...
- 23 Sep 2022, 11:44
- Forum: Ask for Help (v1)
- Topic: Alternate between backup folders…
- Replies: 2
- Views: 242
Alternate between backup folders…
I'm not sure what is going on here. When I get to the last msgbox, the outputbackupfolder variable is empty. The LastSavedFolder.txt will have a 1 or 2 in it. The code is meant to check that file for the number within the file, delete the file, and make new one with the opposite number. This is mean...
- 06 Apr 2021, 20:13
- Forum: Ask for Help (v1)
- Topic: Parse Text File, Record Found Lines to Audit Log as well as line above
- Replies: 7
- Views: 412
Re: Parse Text File, Record Found Lines to Audit Log as well as line above
Thank you. That worked. 1. Could you break down your regex for me? I was trying to understand it better so I don't have to bug people like you in the future (I'm a n00b), but don't understand how you got that to work. Man, I really wish I knew regex better. 2. I have a lot of text files I need to pa...
- 06 Apr 2021, 16:31
- Forum: Ask for Help (v1)
- Topic: Parse Text File, Record Found Lines to Audit Log as well as line above
- Replies: 7
- Views: 412
Re: Parse Text File, Record Found Lines to Audit Log as well as line above
Without those brackets, I found it returning every row in my input file with my code. Are you able to modify my code to make it all work?
- 06 Apr 2021, 15:12
- Forum: Ask for Help (v1)
- Topic: Parse Text File, Record Found Lines to Audit Log as well as line above
- Replies: 7
- Views: 412
Re: Parse Text File, Record Found Lines to Audit Log as well as line above
Thanks. While your code seems to be working, when I built on it and added some fields....the last variable doesn't seem to work for me now. It seems to pull the same A_LoopReadLine line instead of the row before in the file. Also, I noticed that the first character in my output file was a "|" and I'...
- 06 Apr 2021, 11:50
- Forum: Ask for Help (v1)
- Topic: Parse Text File, Record Found Lines to Audit Log as well as line above
- Replies: 7
- Views: 412
Parse Text File, Record Found Lines to Audit Log as well as line above
I would like to do the following: Select a text file to parse Parse the text file for a unique string for example: --- </errorcode> Any rows that have that string get appended to output log file Also, the row ABOVE the unique string in the source file need to be outputted as well. For example, outpu...
- 01 Dec 2020, 08:17
- Forum: Ask for Help (v1)
- Topic: Text not wrapping and is cut off in GUI
- Replies: 1
- Views: 373
Text not wrapping and is cut off in GUI
Can someone help me figure out how to properly wrap a really long text field? This field will include full file paths of files being scanned, but it currently is being cut off in the GUI. Gui, 2: Font, S55 CDefault Bold, Verdana Gui, 2: Font, S45 CDefault Bold, Verdana Gui, 2:Add, Text, x12 y12 w530...
- 30 Nov 2020, 15:02
- Forum: Ask for Help (v1)
- Topic: What am I missing? Doesn't seem to be logging the PST and OST matches
- Replies: 6
- Views: 357
Re: What am I missing? Doesn't seem to be logging the PST and OST matches
I fixed the loop syntax as it was only searching within the selected folder and not recursing. Not sure which final subroutine you're referring to. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors...
- 30 Nov 2020, 14:26
- Forum: Ask for Help (v1)
- Topic: What am I missing? Doesn't seem to be logging the PST and OST matches
- Replies: 6
- Views: 357
Re: What am I missing? Doesn't seem to be logging the PST and OST matches
Thank you. That seems to work. I'm not sure where you're saying I'm missing a return though. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to i...
- 30 Nov 2020, 13:45
- Forum: Ask for Help (v1)
- Topic: What am I missing? Doesn't seem to be logging the PST and OST matches
- Replies: 6
- Views: 357
What am I missing? Doesn't seem to be logging the PST and OST matches
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starti...
- 05 Aug 2020, 14:58
- Forum: Ask for Help (v1)
- Topic: Parse passwords from line of text - multiple hits - regex Topic is solved
- Replies: 3
- Views: 1512
Re: Parse passwords from line of text - multiple hits - regex Topic is solved
Yup, that'll do it. Thank you.
- 05 Aug 2020, 14:33
- Forum: Ask for Help (v1)
- Topic: Parse passwords from line of text - multiple hits - regex Topic is solved
- Replies: 3
- Views: 1512
Parse passwords from line of text - multiple hits - regex Topic is solved
I have a file that has one line containing a bunch of HTML code. I want to parse all the passwords and append them to a text log (one pw per line). Basically, I need everything in between data-tid="foundPassword"> and the next instance of </span> for each instance on the same line. LINE1:  ...
- 30 Jul 2020, 22:22
- Forum: Ask for Help (v1)
- Topic: Regex Help Topic is solved
- Replies: 10
- Views: 5136
Re: Regex Help Topic is solved
Sorry about that. Must have had a typo. Thanks regex master. How did you get so good at it? Any good regex testers you use?
- 30 Jul 2020, 22:14
- Forum: Ask for Help (v1)
- Topic: Regex Help Topic is solved
- Replies: 10
- Views: 5136
Re: Regex Help Topic is solved
So something seems off.
The real data for the line looks like this.
Filename.doc,/blah/blah/blahname.H91/blah/blah/blah/blah/something.zip/fileinzip.pdf
If it helps, it will always be after the .H91 that I am looking for the regex to apply.
The real data for the line looks like this.
Filename.doc,/blah/blah/blahname.H91/blah/blah/blah/blah/something.zip/fileinzip.pdf
If it helps, it will always be after the .H91 that I am looking for the regex to apply.
- 30 Jul 2020, 21:54
- Forum: Ask for Help (v1)
- Topic: Regex Help Topic is solved
- Replies: 10
- Views: 5136
Re: Regex Help Topic is solved
It is not. How can I do it then?
- 30 Jul 2020, 21:17
- Forum: Ask for Help (v1)
- Topic: Regex Help Topic is solved
- Replies: 10
- Views: 5136
Re: Regex Help Topic is solved
Just realized that every row has the pattern .H91/ that would cause the row to hit on the regex. Can I have the regex ignore that .H91/ example but consider the row a hit if any other instances matching the pattern are present in the line? TextLine := "WANT THIS: This is an example string that conta...