Re: SET DEFAULT or ?

2019-08-13 Thread Johan Nel

Gene,

Again, I am not a VFP developer, but my understanding from the 
Clipper/VO/X# XBase fork:


SET DEFAULT change the path where when not specifying a path, will 
determine where it will first look at trying to find the file.  The 
default is the Executing directory.


SET PATH is used as alternative places to look when not found in the 
DEFAULT folder.  There are certain file open commands that does not 
adhere to this which I cannot set my hands on now since it is stated in 
the Clipper/VO/X# help to be documented in the specific 
commands/functions help description.


HTH,

Johan


On 2019/08/14 05:57, Gene Wirchenko wrote:

Hello:

 I have an app that has for years been executed out of the default 
directory with the data there, too.


 Now, I have to give at least the data an arbitrary location. Can 
I use SET DEFAULT for this and save having to rewrite hundreds of 
table referring statements?  Or are there nasty things to worry about?


 I am thinking of having a config table in the startup default 
directory that specifies the data directory and then SET DEFAULT to 
that directory.  When executing a .exe version of the app, I think 
this will not cause trouble, but for a debug version with separate 
.fxp, I think I also need to SET PATH for the code to be found.   I 
join all my code together with SET PROCEDURE TO ... ADDITIVE  in the 
startup .fxp if that makes a difference.  Are the gotchas going to get 
me?


Sincerely,

Gene Wirchenko



[excessive quoting removed by server]

___
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/3927c256-aaee-7663-0bef-09df2954b...@xsinet.co.za
** 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.

SET DEFAULT or ?

2019-08-13 Thread Gene Wirchenko

Hello:

 I have an app that has for years been executed out of the 
default directory with the data there, too.


 Now, I have to give at least the data an arbitrary 
location.  Can I use SET DEFAULT for this and save having to rewrite 
hundreds of table referring statements?  Or are there nasty things to 
worry about?


 I am thinking of having a config table in the startup default 
directory that specifies the data directory and then SET DEFAULT to 
that directory.  When executing a .exe version of the app, I think 
this will not cause trouble, but for a debug version with separate 
.fxp, I think I also need to SET PATH for the code to be found.   I 
join all my code together with SET PROCEDURE TO ... ADDITIVE  in the 
startup .fxp if that makes a difference.  Are the gotchas going to get me?


Sincerely,

Gene Wirchenko


___
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/
** 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.


Re: [NF] Search String

2019-08-13 Thread Charles Hart Enzer, M.D.
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  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  On Behalf Of Charles
> Hart Enzer, M.D.
> > Sent: Tuesday, August 13, 2019 4:08 AM
> > To: profoxt...@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 *
> > *Publications* 
> >
> > *Tiny Country, Huge Dreams*
> > *ארץ זעירה, **חלומות ענקיים*
> > *עם ישראל חי*
> >
> >
> > --- StripMime Report -- processed MIME parts --- multipart/alternative
> >text/plain (text body -- kept)
> >text/html
> > ---
> >
[excessive quoting removed by server]

___
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/CAFSdja208Lv8U72WYvjinyrbkQwSj3pVXDsCZQd=47-69ci...@mail.gmail.com
** 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.

Re: [NF] Search String

2019-08-13 Thread Alan Bourke
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. 

-- 
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm

___
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/6f35543d-d2b0-49b4-8e60-17c957341...@www.fastmail.com
** 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.


Re: [NF] Search String

2019-08-13 Thread CCTbySteveGraves
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  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, , )
>OtherFile = SubStr(aOtherDirFiles[nPos], , )
>DO WHILE OtherFile < SpecFile
>  AAdd(aMissing, OtherFile)
>  nPos = nPos + 1
>  OtherFile = SubStr(aOtherDirFiles[nPos], , )
>ENDDO
>IF OtherFile = SpecFile && We have a match
>  nPos = nPos + 1
>ENDIF
> NEXT
> FOR i = nPos UPTO  aOtherFiles.Length
>AAdd(aMissing, SubStr(aOtherDirFiles[i], , ))
> 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 DIRECTORY
> >
> > Thank you.
> >
> >
> > *Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP*
> > *Aliyah : Cincinnati to Jerusalem
> > 's German Colony
> >  May, 2017*
> >
> >
> >
> > *Volunteer Associate Professor of PsychiatryUniversity of Cincinnati
> > Medical CenterWebSite: **EnzerMD.com *
> > *Publications* 
> >
> > *Tiny Country, Huge Dreams*
> > *ארץ זעירה, **חלומות ענקיים*
> > *עם ישראל חי*
> >
> >
> > --- StripMime Report -- processed MIME parts ---
> > multipart/alternative
> >text/plain (text body -- kept)
> >text/html
> > ---
> >
[excessive quoting removed by server]

___
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/cab-spwue4mpoodycabwezm-zmjp-uqdddeaz5cpxo5tzgxb...@mail.gmail.com
** 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.

Re: [NF] Search String

2019-08-13 Thread Johan Nel

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, , )
  OtherFile = SubStr(aOtherDirFiles[nPos], , )
  DO WHILE OtherFile < SpecFile
    AAdd(aMissing, OtherFile)
    nPos = nPos + 1
    OtherFile = SubStr(aOtherDirFiles[nPos], , )
  ENDDO
  IF OtherFile = SpecFile && We have a match
    nPos = nPos + 1
  ENDIF
NEXT
FOR i = nPos UPTO  aOtherFiles.Length
  AAdd(aMissing, SubStr(aOtherDirFiles[i], , ))
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 DIRECTORY

Thank you.


*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP*
*Aliyah : Cincinnati to Jerusalem
's German Colony
 May, 2017*



*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati
Medical CenterWebSite: **EnzerMD.com *
*Publications* 

*Tiny Country, Huge Dreams*
*ארץ זעירה, **חלומות ענקיים*
*עם ישראל חי*


--- StripMime Report -- processed MIME parts ---
multipart/alternative
   text/plain (text body -- kept)
   text/html
---


[excessive quoting removed by server]

___
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/fcb43f4d-1f4c-73d5-23d4-04ec18a51...@xsinet.co.za
** 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.

Re: [NF] Search String

2019-08-13 Thread Gérard LOCHON

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  On Behalf Of Charles Hart 
Enzer, M.D.
Sent: Tuesday, August 13, 2019 4:08 AM
To: profoxt...@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 
: Cincinnati to Jerusalem 
's German Colony 
 May, 2017*



*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati Medical 
CenterWebSite: **EnzerMD.com *
*Publications* 

*Tiny Country, Huge Dreams*
*ארץ זעירה, **חלומות ענקיים*
*עם ישראל חי*


--- StripMime Report -- processed MIME parts --- multipart/alternative
   text/plain (text body -- kept)
   text/html
---


[excessive quoting removed by server]

___
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/be8e8bec-e533-9c06-d5e5-dfb033cf9...@wanadoo.fr
** 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.

RE: [NF] Search String

2019-08-13 Thread Richard Kaye
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  On Behalf Of Charles Hart 
Enzer, M.D.
Sent: Tuesday, August 13, 2019 4:08 AM
To: profoxt...@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 
: Cincinnati to Jerusalem 
's German Colony 
 May, 2017*



*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati Medical 
CenterWebSite: **EnzerMD.com *
*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=_OXoc=w...@mail.gmail.com
** 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=_OXoc=w...@mail.gmail.com
___
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/bn6pr10mb1458a69962a2edab299ee2bcd2...@bn6pr10mb1458.namprd10.prod.outlook.com
** 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.

Re: [NF] Search String

2019-08-13 Thread Charles Hart Enzer, M.D.
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  wrote:

> Where? In VFP? The command prompt? Powershell?
>
> --
>   Alan Bourke
>   alanpbourke (at) fastmail (dot) fm
>
[excessive quoting removed by server]

___
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/CAFSdja02cx1BYg9LV=khhna+kpjwl-ipxom+ihuhqai+o68...@mail.gmail.com
** 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.

Re: [NF] Search String

2019-08-13 Thread Gérard LOCHON

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 DIRECTORY

Thank you.


*Shai / שי **Charles Hart Enzer, MD(Ohio, USA), FAACAP*
*Aliyah : Cincinnati to Jerusalem
's German Colony
 May, 2017*



*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati
Medical CenterWebSite: **EnzerMD.com *
*Publications* 

*Tiny Country, Huge Dreams*
*ארץ זעירה, **חלומות ענקיים*
*עם ישראל חי*


--- StripMime Report -- processed MIME parts ---
multipart/alternative
   text/plain (text body -- kept)
   text/html
---


[excessive quoting removed by server]

___
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/3b60f832-51d7-7fb4-2ea4-20ca4a709...@wanadoo.fr
** 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.

Re: [NF] Search String

2019-08-13 Thread Alan Bourke
Where? In VFP? The command prompt? Powershell?

-- 
  Alan Bourke
  alanpbourke (at) fastmail (dot) fm

___
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/bd43daf3-5703-4a77-afc3-f4aad4ebc...@www.fastmail.com
** 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.


[NF] Search String

2019-08-13 Thread Charles Hart Enzer, M.D.
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 : Cincinnati to Jerusalem
's German Colony
 May, 2017*



*Volunteer Associate Professor of PsychiatryUniversity of Cincinnati
Medical CenterWebSite: **EnzerMD.com *
*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=_OXoc=w...@mail.gmail.com
** 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.