dbTalk Databases Forums  

Re: Trouble running BAT file from P9...?

comp.databases.paradox comp.databases.paradox


Discuss Re: Trouble running BAT file from P9...? in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 10:31 AM







Kenneth wrote:

Quote:
What's causing the failure?
The space, as a guess. Have you tried wrapping the line in escaped quotes?

if not execute("\"\\K06\\K06 apps\\ten.bat\"") then
errorShow()
endif

Or better yet, ALSO include the drive letter starting it all off.





Tony


Reply With Quote
  #2  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 10:31 AM







Kenneth wrote:

Quote:
What's causing the failure?
The space, as a guess. Have you tried wrapping the line in escaped quotes?

if not execute("\"\\K06\\K06 apps\\ten.bat\"") then
errorShow()
endif

Or better yet, ALSO include the drive letter starting it all off.





Tony


Reply With Quote
  #3  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 10:31 AM




Kenneth wrote:

Quote:
What's causing the failure?
The space, as a guess. Have you tried wrapping the line in escaped quotes?

if not execute("\"\\K06\\K06 apps\\ten.bat\"") then
errorShow()
endif

Or better yet, ALSO include the drive letter starting it all off.





Tony


Reply With Quote
  #4  
Old   
Jim Giner
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 10:46 AM



what is k06\k06? The chars between the quotes don't make sense as a command
that DOS would have understood. If the file "ten.bat" is stored in the apps
folder then that would be all you need (with the inclusion of a drive and
perhaps the beginning of the path if apps is not in the root). If K06\K06
is part of the path, then that space is certainly killing you as Tony
suggested.

"Kenneth" <usenet (AT) soleSPAMLESSassociates (DOT) com> wrote

Quote:
Howdy,

I run P9 with XP.

I need to run a batch file from Paradox, but can't seem to
get it happy.

The line is:

if not execute("\\K06\\K06 apps\\ten.bat") then errorShow()
endif

but when I run it, I get "error occurred trying to execute
the specified program."

The batch file runs properly if I cut and paste everything
between the quotes into a run command.

What's causing the failure?

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."



Reply With Quote
  #5  
Old   
Jim Giner
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 10:46 AM



what is k06\k06? The chars between the quotes don't make sense as a command
that DOS would have understood. If the file "ten.bat" is stored in the apps
folder then that would be all you need (with the inclusion of a drive and
perhaps the beginning of the path if apps is not in the root). If K06\K06
is part of the path, then that space is certainly killing you as Tony
suggested.

"Kenneth" <usenet (AT) soleSPAMLESSassociates (DOT) com> wrote

Quote:
Howdy,

I run P9 with XP.

I need to run a batch file from Paradox, but can't seem to
get it happy.

The line is:

if not execute("\\K06\\K06 apps\\ten.bat") then errorShow()
endif

but when I run it, I get "error occurred trying to execute
the specified program."

The batch file runs properly if I cut and paste everything
between the quotes into a run command.

What's causing the failure?

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."



Reply With Quote
  #6  
Old   
Jim Giner
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 10:46 AM



what is k06\k06? The chars between the quotes don't make sense as a command
that DOS would have understood. If the file "ten.bat" is stored in the apps
folder then that would be all you need (with the inclusion of a drive and
perhaps the beginning of the path if apps is not in the root). If K06\K06
is part of the path, then that space is certainly killing you as Tony
suggested.

"Kenneth" <usenet (AT) soleSPAMLESSassociates (DOT) com> wrote

Quote:
Howdy,

I run P9 with XP.

I need to run a batch file from Paradox, but can't seem to
get it happy.

The line is:

if not execute("\\K06\\K06 apps\\ten.bat") then errorShow()
endif

but when I run it, I get "error occurred trying to execute
the specified program."

The batch file runs properly if I cut and paste everything
between the quotes into a run command.

What's causing the failure?

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."



Reply With Quote
  #7  
Old   
Jim Giner
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 10:46 AM



what is k06\k06? The chars between the quotes don't make sense as a command
that DOS would have understood. If the file "ten.bat" is stored in the apps
folder then that would be all you need (with the inclusion of a drive and
perhaps the beginning of the path if apps is not in the root). If K06\K06
is part of the path, then that space is certainly killing you as Tony
suggested.

"Kenneth" <usenet (AT) soleSPAMLESSassociates (DOT) com> wrote

Quote:
Howdy,

I run P9 with XP.

I need to run a batch file from Paradox, but can't seem to
get it happy.

The line is:

if not execute("\\K06\\K06 apps\\ten.bat") then errorShow()
endif

but when I run it, I get "error occurred trying to execute
the specified program."

The batch file runs properly if I cut and paste everything
between the quotes into a run command.

What's causing the failure?

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."



Reply With Quote
  #8  
Old   
Jim Giner
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 10:46 AM



what is k06\k06? The chars between the quotes don't make sense as a command
that DOS would have understood. If the file "ten.bat" is stored in the apps
folder then that would be all you need (with the inclusion of a drive and
perhaps the beginning of the path if apps is not in the root). If K06\K06
is part of the path, then that space is certainly killing you as Tony
suggested.

"Kenneth" <usenet (AT) soleSPAMLESSassociates (DOT) com> wrote

Quote:
Howdy,

I run P9 with XP.

I need to run a batch file from Paradox, but can't seem to
get it happy.

The line is:

if not execute("\\K06\\K06 apps\\ten.bat") then errorShow()
endif

but when I run it, I get "error occurred trying to execute
the specified program."

The batch file runs properly if I cut and paste everything
between the quotes into a run command.

What's causing the failure?

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."



Reply With Quote
  #9  
Old   
Jim Giner
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 10:46 AM



what is k06\k06? The chars between the quotes don't make sense as a command
that DOS would have understood. If the file "ten.bat" is stored in the apps
folder then that would be all you need (with the inclusion of a drive and
perhaps the beginning of the path if apps is not in the root). If K06\K06
is part of the path, then that space is certainly killing you as Tony
suggested.

"Kenneth" <usenet (AT) soleSPAMLESSassociates (DOT) com> wrote

Quote:
Howdy,

I run P9 with XP.

I need to run a batch file from Paradox, but can't seem to
get it happy.

The line is:

if not execute("\\K06\\K06 apps\\ten.bat") then errorShow()
endif

but when I run it, I get "error occurred trying to execute
the specified program."

The batch file runs properly if I cut and paste everything
between the quotes into a run command.

What's causing the failure?

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."



Reply With Quote
  #10  
Old   
Tony McGuire
 
Posts: n/a

Default Re: Trouble running BAT file from P9...? - 12-17-2008 , 11:20 AM



Kenneth wrote:
Quote:
Yes, K06 is the name of the system, and K06 Apps is the
share name of one of its disks. That was my attempt at
specifying the complete path after trying other approaches.

Assuming the problem to be the space, how should I specify
the path properly?

Many thanks,

WHOA!

Are you saying that K06 is a remote computer?

Then you need 4 backslashes to name the remote UNC drive (which resolve to 2
backslashes). All others just need the standard 2 backslashes.



--
---------------
Tony McGuire


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.