I need a Search String:
- All Documents in OTHER DIRECTORIES - That are NOT in a SPECIFIC DIRECTORY
Thank you.
*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP* *Aliyah https://en.wikipedia.org/wiki/Aliyah: Cincinnati to Jerusalem http://www.gojerusalem.com/items/263/German-Colony/'s German Colony https://en.wikipedia.org/wiki/German_Colony,_Jerusalem May, 2017*
*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati Medical CenterWebSite: **EnzerMD.com http://EnzerMD.com* *Publications* http://www.enzermd.com/CV.html#Publications
*Tiny Country, Huge Dreams* *ארץ זעירה, **חלומות ענקיים* *עם ישראל חי*
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
Where? In VFP? The command prompt? Powershell?
Great question
I'm searching my entire hard drive for folders or files not found in the specific directory.
I am using Windows 10.
My search tool is:
https://www.voidtools.com/support/everything/
Shai / שי Charles Hart Enzer, MD(Ohio, USA), FAACAP
Aliyah: Cincinnati to Jerusalem's German Colony May, 2017
Volunteer Associate Professor of Psychiatry University of Cincinnati Medical Center WebSite: http://www.enzermd.com
Publications http://www.enzermd.com/CV.html#Publications
Tiny Country, Huge Dreams
ארץ זעירה, חלומות ענקיים
עם ישראל חי
On Tue, Aug 13, 2019, 11:41 AM Alan Bourke alanpbourke@fastmail.fm wrote:
Where? In VFP? The command prompt? Powershell?
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]
Hello.
Using the windows command prompt, you can :
dir "/[the_search_root_path]/*.*" /s /b /A-d | find /V "/[the_path_you_want_to_exclude]/" > /[your_output_text_file]
/Gérard./ /
On 13/08/2019 10:08, Charles Hart Enzer, M.D. wrote:
I need a Search String:
- All Documents in OTHER DIRECTORIES - That are NOT in a SPECIFIC DIRECTORYThank you.
*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP* *Aliyah https://en.wikipedia.org/wiki/Aliyah: Cincinnati to Jerusalem http://www.gojerusalem.com/items/263/German-Colony/'s German Colony https://en.wikipedia.org/wiki/German_Colony,_Jerusalem May, 2017*
*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati Medical CenterWebSite: **EnzerMD.com http://EnzerMD.com* *Publications* http://www.enzermd.com/CV.html#Publications
*Tiny Country, Huge Dreams* *ארץ זעירה, **חלומות ענקיים* *עם ישראל חי*
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
Everything does have a UI if that's helpful. If you're at a command prompt, you can use
e /e
to open the GUI.
--
rk
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Charles Hart Enzer, M.D. Sent: Tuesday, August 13, 2019 4:08 AM To: profoxtech@leafe.com Subject: [NF] Search String
I need a Search String:
- All Documents in OTHER DIRECTORIES - That are NOT in a SPECIFIC DIRECTORY
Thank you.
*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP* *Aliyah https://en.wikipedia.org/wiki/Aliyah: Cincinnati to Jerusalem http://www.gojerusalem.com/items/263/German-Colony/'s German Colony https://en.wikipedia.org/wiki/German_Colony,_Jerusalem May, 2017*
*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati Medical CenterWebSite: **EnzerMD.com http://EnzerMD.com* *Publications* http://www.enzermd.com/CV.html#Publications
*Tiny Country, Huge Dreams* *ארץ זעירה, **חלומות ענקיים* *עם ישראל חי*
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
_______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/CAFSdja2CJg1gwCZZeMWOkeUdUKaGcrd-suAbak=TNR... ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. Report [OT] Abuse: http://leafe.com/reportAbuse/CAFSdja2CJg1gwCZZeMWOkeUdUKaGcrd-suAbak=TNR=_OX...
A directory based file structure is a tree structure. There is no implied way to unfold a tree structure without recurse. And recurse is not a one-level action. So it cannot exist a file skeleton, acting on a solely level, to impact other levels.
Gérard.
On 13/08/2019 13:26, Richard Kaye wrote:
Everything does have a UI if that's helpful. If you're at a command prompt, you can use
e /e
to open the GUI.
--
rk
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Charles Hart Enzer, M.D. Sent: Tuesday, August 13, 2019 4:08 AM To: profoxtech@leafe.com Subject: [NF] Search String
I need a Search String:
- All Documents in OTHER DIRECTORIES - That are NOT in a SPECIFIC DIRECTORYThank you.
*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP* *Aliyah https://en.wikipedia.org/wiki/Aliyah: Cincinnati to Jerusalem http://www.gojerusalem.com/items/263/German-Colony/'s German Colony https://en.wikipedia.org/wiki/German_Colony,_Jerusalem May, 2017*
*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati Medical CenterWebSite: **EnzerMD.com http://EnzerMD.com* *Publications* http://www.enzermd.com/CV.html#Publications
*Tiny Country, Huge Dreams* *ארץ זעירה, **חלומות ענקיים* *עם ישראל חי*
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
Thank you
Shai / שי Charles Hart Enzer, MD(Ohio, USA), FAACAP
Aliyah: Cincinnati to Jerusalem's German Colony May, 2017
Volunteer Associate Professor of Psychiatry University of Cincinnati Medical Center WebSite: http://www.enzermd.com
Publications http://www.enzermd.com/CV.html#Publications
Tiny Country, Huge Dreams
ארץ זעירה, חלומות ענקיים
עם ישראל חי
On Tue, Aug 13, 2019, 3:14 PM Gérard LOCHON g-lochon@wanadoo.fr wrote:
A directory based file structure is a tree structure. There is no implied way to unfold a tree structure without recurse. And recurse is not a one-level action. So it cannot exist a file skeleton, acting on a solely level, to impact other levels.
Gérard.
On 13/08/2019 13:26, Richard Kaye wrote:
Everything does have a UI if that's helpful. If you're at a command
prompt, you can use
e /e
to open the GUI.
--
rk
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Charles
Hart Enzer, M.D.
Sent: Tuesday, August 13, 2019 4:08 AM To: profoxtech@leafe.com Subject: [NF] Search String
I need a Search String:
- All Documents in OTHER DIRECTORIES - That are NOT in a SPECIFIC DIRECTORYThank you.
*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP* *Aliyah <
https://en.wikipedia.org/wiki/Aliyah%3E: Cincinnati to Jerusalem < http://www.gojerusalem.com/items/263/German-Colony/%3E%27s German Colony < https://en.wikipedia.org/wiki/German_Colony,_Jerusalem%3E May, 2017*
*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati
Medical CenterWebSite: **EnzerMD.com http://EnzerMD.com*
*Publications* http://www.enzermd.com/CV.html#Publications
*Tiny Country, Huge Dreams* *ארץ זעירה, **חלומות ענקיים* *עם ישראל חי*
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
The easiest would probably be to fire a DIR command from your application:
DIR SpecificDir*.* /ON > specdir.txt // Order by Name DIR OtherDir*.* /ON > otherdir.txt
Then read the TXT files and compare the filenames after extracting it from lines.
Since I am not a VFP but a Clipper/VO/X# developer hopefully this will give you an idea how to do it using the VFP language syntax in X#.
LOCAL aSpecDirFiles, aOtherDirFiles AS STRING[] LOCAL aMissing = ArrayNew() AS ARRAY aSpecDirFiles = FileToStr("specdir.txt").Split(CR_LF) aOtherDirFiles = FileToStr("otherdir.txt").Split(CR_LF) LOCAL nPos = 1 AS INT FOREACH line AS STRING IN aSpecDirFiles SpecFile = SubStr(line, <start>, <end>) OtherFile = SubStr(aOtherDirFiles[nPos], <start>, <end>) DO WHILE OtherFile < SpecFile AAdd(aMissing, OtherFile) nPos = nPos + 1 OtherFile = SubStr(aOtherDirFiles[nPos], <start>, <end>) ENDDO IF OtherFile = SpecFile && We have a match nPos = nPos + 1 ENDIF NEXT FOR i = nPos UPTO aOtherFiles.Length AAdd(aMissing, SubStr(aOtherDirFiles[i], <start>, <end>)) NEXT
Hope this helps.
On 2019/08/13 10:08, Charles Hart Enzer, M.D. wrote:
I need a Search String:
- All Documents in OTHER DIRECTORIES - That are NOT in a SPECIFIC DIRECTORYThank you.
*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP* *Aliyah https://en.wikipedia.org/wiki/Aliyah: Cincinnati to Jerusalem http://www.gojerusalem.com/items/263/German-Colony/'s German Colony https://en.wikipedia.org/wiki/German_Colony,_Jerusalem May, 2017*
*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati Medical CenterWebSite: **EnzerMD.com http://EnzerMD.com* *Publications* http://www.enzermd.com/CV.html#Publications
*Tiny Country, Huge Dreams* *ארץ זעירה, **חלומות ענקיים* *עם ישראל חי*
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
I use Nirsoft Searchmyfiles for searching by file names, for duplicate files, for non-duplicates, for files containing a string, many options, great tool. He has other really useful tools 8-)
https://www.nirsoft.net/utils/search_my_files.html
KUJayhawk Steve in Florida
On Tue, Aug 13, 2019, 9:05 AM Johan Nel johan.nel@xsinet.co.za wrote:
The easiest would probably be to fire a DIR command from your application:
DIR SpecificDir*.* /ON > specdir.txt // Order by Name DIR OtherDir*.* /ON > otherdir.txt
Then read the TXT files and compare the filenames after extracting it from lines.
Since I am not a VFP but a Clipper/VO/X# developer hopefully this will give you an idea how to do it using the VFP language syntax in X#.
LOCAL aSpecDirFiles, aOtherDirFiles AS STRING[] LOCAL aMissing = ArrayNew() AS ARRAY aSpecDirFiles = FileToStr("specdir.txt").Split(CR_LF) aOtherDirFiles = FileToStr("otherdir.txt").Split(CR_LF) LOCAL nPos = 1 AS INT FOREACH line AS STRING IN aSpecDirFiles SpecFile = SubStr(line, <start>, <end>) OtherFile = SubStr(aOtherDirFiles[nPos], <start>, <end>) DO WHILE OtherFile < SpecFile AAdd(aMissing, OtherFile) nPos = nPos + 1 OtherFile = SubStr(aOtherDirFiles[nPos], <start>, <end>) ENDDO IF OtherFile = SpecFile && We have a match nPos = nPos + 1 ENDIF NEXT FOR i = nPos UPTO aOtherFiles.Length AAdd(aMissing, SubStr(aOtherDirFiles[i], <start>, <end>)) NEXT
Hope this helps.
On 2019/08/13 10:08, Charles Hart Enzer, M.D. wrote:
I need a Search String:
- All Documents in OTHER DIRECTORIES - That are NOT in a SPECIFIC DIRECTORYThank you.
*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP* *Aliyah https://en.wikipedia.org/wiki/Aliyah: Cincinnati to Jerusalem http://www.gojerusalem.com/items/263/German-Colony/'s German Colony https://en.wikipedia.org/wiki/German_Colony,_Jerusalem May, 2017*
*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati Medical CenterWebSite: **EnzerMD.com http://EnzerMD.com* *Publications* http://www.enzermd.com/CV.html#Publications
*Tiny Country, Huge Dreams* *ארץ זעירה, **חלומות ענקיים* *עם ישראל חי*
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]
The best drive search tools are those that search the MFT (Master File Table) on NTFS volumes rather than iterating through the file system itself. It's like the difference between finding records in a DBF using the index as opposed to scanning each record individually.
Two free examples are Wizfile and Ultrasearch.
As an example Wizfile can rescan my 500GB SSD hard drive in about 5 seconds and can return search results almost instantly.