Author |
Message |
roadrunner
Joined: 19 Feb 2008 Posts: 15 Country: United States |
|
UNC path statements |
|
1) Delete command works (thanks) had to use pushd.exe command to get sqltodbf.exe to run
del "\\server name\share\*.dbf"
del "\\server name\share\*.cdx"
rem pushd.exe creates mapping
pushd \\server name\share\
SQLTODBF.EXE
rem removes pushd drive mapping
popd
2) Unable to get the UNC path statement correct for running the foxpro.exe and its associated .prg file (need to set its path) to run in the .prg directory.
R:\data\projs\fox25dos\foxpro Q:\Gtwy\SQLtoDBF\DoIndex.prg
3) Unable to get the UNC path right for copying files from one directory to another
copy country.dbf r:\data\projs\dbf
Thanks
|
|
Fri Mar 28, 2008 11:40 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
|
|
What's definition of R: ?
Does FoxPro suport UNC-based file names?
|
|
Fri Mar 28, 2008 12:23 pm |
|
 |
roadrunner
Joined: 19 Feb 2008 Posts: 15 Country: United States |
|
|
|
yes it does.
|
|
Fri Mar 28, 2008 12:31 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
|
|
What is the answer for my first question?
|
|
Fri Mar 28, 2008 12:38 pm |
|
 |
roadrunner
Joined: 19 Feb 2008 Posts: 15 Country: United States |
|
|
|
\\server name\share\data\projs\foxpro25dos\foxpro.exe
|
|
Fri Mar 28, 2008 12:41 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
|
|
"server name" with a space?
|
|
Fri Mar 28, 2008 12:53 pm |
|
 |
roadrunner
Joined: 19 Feb 2008 Posts: 15 Country: United States |
|
|
|
nope sorry
|
|
Fri Mar 28, 2008 12:59 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
|
|
Well then... if you don't describe in detail what you are doing, how do you expect me to help you? Sorry but I cannot guess somehow where you might have a syntax error or a logical error if I cannot see the exact command.
If you get an error message, please provide the complete error text, the complete command that led to that error and the context in which it was executed.
If you don't want to use real server name, you can replaces some characters, for example, letters R with X, X with N, but don't use replace or use any non-letters, special characters and spaces for the substitution, so we can see whether they cause any problems.
|
|
Fri Mar 28, 2008 1:25 pm |
|
 |
roadrunner
Joined: 19 Feb 2008 Posts: 15 Country: United States |
|
|
|
\\server\share1\foxpro.exe \\server\share2\DoIndex.prg
error
The system cannot find the path specified.
|
|
Fri Mar 28, 2008 1:33 pm |
|
 |
roadrunner
Joined: 19 Feb 2008 Posts: 15 Country: United States |
|
|
|
copy \\server\share1\country.dbf \\server\share3
The system cannot find the file specified.
|
|
Fri Mar 28, 2008 1:38 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
|
|
 |
 |
\\server\share1\foxpro.exe \\server\share2\DoIndex.prg |
Have you tried running \\server\share1\foxpro.exe ? Do you get the same error? If yes, what is returned by dir \\server\share1\*.exe ?
|
|
Fri Mar 28, 2008 1:43 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
|
|
What do you get after dir \\server\share1\*.* ?
|
|
Fri Mar 28, 2008 1:44 pm |
|
 |
roadrunner
Joined: 19 Feb 2008 Posts: 15 Country: United States |
|
|
|
Results from running the foxpro.exe
Sees files in directory however, error message displayed after running foxpro.exe are "cannot create program workspace: unable to created temporary work file (s).
|
|
Mon Mar 31, 2008 9:19 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7969
|
|
|
Mon Mar 31, 2008 11:42 am |
|
 |
roadrunner
Joined: 19 Feb 2008 Posts: 15 Country: United States |
|
|
|
path issue, this statement works
pushd \\server\share\
foxpro.exe \\server\share2\DoIndex.prg
popd
Thanks for your help
|
|
Mon Mar 31, 2008 11:53 am |
|
 |
|