SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
RunAndWait doesn't complete the job
Goto page Previous  1, 2
 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
RunAndWait doesn't complete the job
Author Message
roadrunner



Joined: 19 Feb 2008
Posts: 15
Country: United States

Post UNC path statements Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
What's definition of R: ?

Does FoxPro suport UNC-based file names?
Fri Mar 28, 2008 12:23 pm View user's profile Send private message
roadrunner



Joined: 19 Feb 2008
Posts: 15
Country: United States

Post Reply with quote
yes it does.
Fri Mar 28, 2008 12:31 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
What is the answer for my first question?
Fri Mar 28, 2008 12:38 pm View user's profile Send private message
roadrunner



Joined: 19 Feb 2008
Posts: 15
Country: United States

Post Reply with quote
\\server name\share\data\projs\foxpro25dos\foxpro.exe
Fri Mar 28, 2008 12:41 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
"server name" with a space?
Fri Mar 28, 2008 12:53 pm View user's profile Send private message
roadrunner



Joined: 19 Feb 2008
Posts: 15
Country: United States

Post Reply with quote
nope sorry
Fri Mar 28, 2008 12:59 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
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 View user's profile Send private message
roadrunner



Joined: 19 Feb 2008
Posts: 15
Country: United States

Post Reply with quote
\\server\share1\foxpro.exe \\server\share2\DoIndex.prg

error
The system cannot find the path specified.
Fri Mar 28, 2008 1:33 pm View user's profile Send private message
roadrunner



Joined: 19 Feb 2008
Posts: 15
Country: United States

Post Reply with quote
copy \\server\share1\country.dbf \\server\share3

The system cannot find the file specified.
Fri Mar 28, 2008 1:38 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
Quote:
\\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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
What do you get after dir \\server\share1\*.* ?
Fri Mar 28, 2008 1:44 pm View user's profile Send private message
roadrunner



Joined: 19 Feb 2008
Posts: 15
Country: United States

Post Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
That sounds like a FoxPro issue. I suggest that you take it to FoxPro support forums. Please try one of this http://www.google.com/search?hl=en&q=foxpro+forum
Mon Mar 31, 2008 11:42 am View user's profile Send private message
roadrunner



Joined: 19 Feb 2008
Posts: 15
Country: United States

Post Reply with quote
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.