@penpen
You are correct, the problem wasn't with any of the code, it was newbie user error
I was copying the code from notepad++ to powershell window instead of running the actual .ps1 script file from the folder Doh!!
Thanks Steffen and penpen for your assistance
Search found 7 matches
- 15 Jul 2017 18:35
- Forum: DOS Batch Forum
- Topic: Grab powershell variable from .bat file in same directory
- Replies: 5
- Views: 4284
- 15 Jul 2017 16:05
- Forum: DOS Batch Forum
- Topic: Grab powershell variable from .bat file in same directory
- Replies: 5
- Views: 4284
Re: Grab powershell variable from .bat file in same directory
I get this error Steffan: Join-Path : Cannot bind argument to parameter 'Path' because it is an empty string. At line:1 char:35 + $dropbox = Get-Content (Join-Path $PSScriptRoot 'config.bat') ` + ~~~~~~~~~ I thought the \s* selected anything but white space after the = So I can just omit it from the...
- 15 Jul 2017 11:15
- Forum: DOS Batch Forum
- Topic: Grab powershell variable from .bat file in same directory
- Replies: 5
- Views: 4284
Grab powershell variable from .bat file in same directory
Hey guys, I am a complete newb with bash and powershell scripting and have been trying to figure out how to define a variable in powershell with a variable defined in a batch script stored within the same directory as the powershell script. Basically, I want to get the Dropbox Path from config.bat a...
- 12 Jun 2017 09:06
- Forum: DOS Batch Forum
- Topic: Extract Text String Between Curly Braces From Multiple Files in a Directory And Save Extracted to File
- Replies: 3
- Views: 4781
Extract Text String Between Curly Braces From Multiple Files in a Directory And Save Extracted to File
I am hoping someone can help me with this issue. I have a folder with multiple text files. Each text files contains piped words/text between curly braces like this..... { a|b|c|d } ....... { e|f|g|h } ........ { i|j|k|l|m } .....etc OR sometimes nested curly braces like this.... {{ a|b|c| { d|d1|d2|...
- 07 Jun 2017 16:41
- Forum: DOS Batch Forum
- Topic: Split text file into multiple files, delete input file, move split files to another directory
- Replies: 4
- Views: 4742
Re: Split text file into multiple files, delete input file, move split files to another directory
Thanks Steffan, it appears to work great on a 7MB keyword file.
Thanks you very much for your help and prompt response.
Thanks you very much for your help and prompt response.
- 06 Jun 2017 10:55
- Forum: DOS Batch Forum
- Topic: Split text file into multiple files, delete input file, move split files to another directory
- Replies: 4
- Views: 4742
Re: Split text file into multiple files, delete input file, move split files to another directory
A 100MB file would contain roughly 2 million keywords/phrases. Usually, the file is alot smaller at around 30MB though.
A keyword or phrase can be upto about 100 characters which is inclusive of spaces.
A keyword or phrase can be upto about 100 characters which is inclusive of spaces.
- 06 Jun 2017 06:46
- Forum: DOS Batch Forum
- Topic: Split text file into multiple files, delete input file, move split files to another directory
- Replies: 4
- Views: 4742
Split text file into multiple files, delete input file, move split files to another directory
I am hoping the wonderful experts here can assist me with my problem. I have searched for hours and tried all the answers I found similar to my problem but cant seem to get any of them to work for this particular problem. I am not a coder but have dabbled with other code and got them to work for oth...