I have a number of applications created in VFP 5.0, that I run on my machine(Win2k) on a daily basis. I also have a FP 2.6 for DOS app that I also run on my machine on a daily basis. This is run before any of the VFP stuff.
Another application, created in VFP 5.0, is run on another Win2k machine on a daily basis.
I need to compare the directory of a folder before and after the app is run on the other machine.
I have been using the unix ls and comm commands to do this, but something changed the way those commands operate and I am trying to switch the prog to use 'Run dir > temp1.txt' and again to temp2.txt.
My problem is, when I use the 'run dir' command on my machine, my results are in the format of command.com.
When I use the 'run dir' command on the other machine, my results come back in cmd.exe format.
I thought about using the VFP5 'dir' command, but then I get the results in two columns.
Does anyone know how I can ensure that the 'run dir' command operates under only one or the other(cmd.exe/command.com) programmatically so I can append this data to a '.dbf'? Unless I know which is going to run, I won't know for sure what file structure is needed.
Thanks, in advance for any help.
Pat
Another application, created in VFP 5.0, is run on another Win2k machine on a daily basis.
I need to compare the directory of a folder before and after the app is run on the other machine.
I have been using the unix ls and comm commands to do this, but something changed the way those commands operate and I am trying to switch the prog to use 'Run dir > temp1.txt' and again to temp2.txt.
My problem is, when I use the 'run dir' command on my machine, my results are in the format of command.com.
When I use the 'run dir' command on the other machine, my results come back in cmd.exe format.
I thought about using the VFP5 'dir' command, but then I get the results in two columns.
Does anyone know how I can ensure that the 'run dir' command operates under only one or the other(cmd.exe/command.com) programmatically so I can append this data to a '.dbf'? Unless I know which is going to run, I won't know for sure what file structure is needed.
Thanks, in advance for any help.
Pat