I have a form that I use to match against standard applications. Currently, there are 400+ files I do not want to view
The files are names of standard applications ( flash, shockwave, Java, Office) that are in a directory
example
I have the form working, what I need to do to make this application pull from an external source (txt or csv ) as all 400 items are hard coded currently as you can see.
The point of the application would be, if we install Apple Quicktime on everyones computer, that will pull into the application, which I don't want to do. I also, wouldn't want to redistribute the application due to one line of code. I can just update the external source to not match the new line
Thanks!
Matching Items
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Matching Items
If you open the psf, you'll see them hard coded into the application
Just trying to get all of them on a txt or CSV file. I've tried both get-content and import-CSV with
-notlike
-ne
-notmatch
But I can only get it to display correctly, using not-match hard coded in the application
Just trying to get all of them on a txt or CSV file. I've tried both get-content and import-CSV with
-notlike
-ne
-notmatch
But I can only get it to display correctly, using not-match hard coded in the application
Re: Matching Items
I believe looking at the attached form will help
But I'm trying to -notmatch against textfiles.
Please let me know if you can, or cannot view the picture of my windows explorer and the .psf file
Thanks!
But I'm trying to -notmatch against textfiles.
Please let me know if you can, or cannot view the picture of my windows explorer and the .psf file
Thanks!
Re: Matching Items
You're absolutely right, I do have it hard coded and I want that giant list of -notmatch pulled from a txt or CSV file on a server, instead of within the application.
I've tried -notin to no avail
I just want to return from the PC what's not in the list
As stated, running it as it is, perfect.
I've tried -notin to no avail
I just want to return from the PC what's not in the list
As stated, running it as it is, perfect.
Re: Matching Items
Sorry but I still cannot understand what your question is. What doesn't work? What are you trying to do?
You have to find a way to ask the question so that it is clear what you are trying to do. What are you trying to return from what PC?
I can only see that you are listing a bunch of files and trying to match them to a bunch of strings.
-match uses RegEx. It will have issues with strings that have meta characters.
If you want to exclude files by name use "-Exclude" with an array of names and wildcards and those files will be skipped.
You can also use Where{ $_.Name -notin $list }
You have to find a way to ask the question so that it is clear what you are trying to do. What are you trying to return from what PC?
I can only see that you are listing a bunch of files and trying to match them to a bunch of strings.
-match uses RegEx. It will have issues with strings that have meta characters.
If you want to exclude files by name use "-Exclude" with an array of names and wildcards and those files will be skipped.
You can also use Where{ $_.Name -notin $list }