 |
|
 |
|
Next: Missing file
|
| Author |
Message |
External

Since: Feb 12, 2008 Posts: 26
|
(Msg. 16) Posted: Thu Dec 18, 2008 9:00 am
Post subject: Re: Trouble running BAT file from P9...? [Login to view extended thread Info.] Archived from groups: comp>databases>paradox (more info?)
|
|
|
On Thu, 18 Dec 2008 08:15:48 -0500, "Jim Giner"
wrote:
>Then if you're calling program is on the same box as the bat file, you
>should only need to reference the drive letter and the path (folders) and
>NOT any "machine" id (unc name). Sounds like it would be just c:\\ten.bat
>in this case which as tony says is not good practice. You may not know this
>(and it may no longer be true!), but in the old dos days there was a hard
>limit on how much you could put into the root folder of a drive. Hence the
>practice of puttting things into folders.
Hello again,
Well, I have it working now (and will move the bat file to a
sub-folder).
Many thanks to all,
--
Kenneth
If you email... Please remove the "SPAMLESS." >> Stay informed about: Trouble running BAT file from P9...? |
|
| Back to top |
|
 |  |
External

Since: Oct 14, 2008 Posts: 10
|
(Msg. 17) Posted: Thu Dec 18, 2008 9:00 am
Post subject: Re: Trouble running BAT file from P9...? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Kenneth wrote:
>
> Well, I have it working now (and will move the bat file to a
> sub-folder).
>
> Many thanks to all,
It is 'traditional' for part of the thanks to be how the problem was resolved.
That way the error and solution could be the next person's resolution to
the same issue.
Any hints? Was the 'cmd' what fixed yours?
--
---------------
Tony McGuire >> Stay informed about: Trouble running BAT file from P9...? |
|
| Back to top |
|
 |  |
External

Since: Feb 12, 2008 Posts: 26
|
(Msg. 18) Posted: Thu Dec 18, 2008 2:38 pm
Post subject: Re: Trouble running BAT file from P9...? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thu, 18 Dec 2008 07:57:41 -0700, Tony McGuire
wrote:
>Kenneth wrote:
>>
>> Well, I have it working now (and will move the bat file to a
>> sub-folder).
>>
>> Many thanks to all,
>
>
>It is 'traditional' for part of the thanks to be how the problem was resolved.
> That way the error and solution could be the next person's resolution to
>the same issue.
>
>
>Any hints? Was the 'cmd' what fixed yours?
Hi Tony,
(Not only "traditional", but also "sensible"... 'sorry)
if not execute ("C:\\ten.bat")
then errorShow()
endif
was what worked (prior to my moving the batch file.)
All the best,
--
Kenneth
If you email... Please remove the "SPAMLESS." >> Stay informed about: Trouble running BAT file from P9...? |
|
| Back to top |
|
 |  |
External

Since: Mar 14, 2008 Posts: 25
|
(Msg. 19) Posted: Thu Dec 18, 2008 2:46 pm
Post subject: Re: Trouble running BAT file from P9...? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
ahhhhh, success!
"Kenneth" wrote in message
> On Thu, 18 Dec 2008 07:57:41 -0700, Tony McGuire
> wrote:
>
>>Kenneth wrote:
>>>
>>> Well, I have it working now (and will move the bat file to a
>>> sub-folder).
>>>
>>> Many thanks to all,
>>
>>
>>It is 'traditional' for part of the thanks to be how the problem was
>>resolved.
>> That way the error and solution could be the next person's resolution
>> to
>>the same issue.
>>
>>
>>Any hints? Was the 'cmd' what fixed yours?
>
> Hi Tony,
>
> (Not only "traditional", but also "sensible"... 'sorry)
>
> if not execute ("C:\\ten.bat")
> then errorShow()
> endif
>
> was what worked (prior to my moving the batch file.)
>
> All the best,
> --
> Kenneth
>
> If you email... Please remove the "SPAMLESS." >> Stay informed about: Trouble running BAT file from P9...? |
|
| Back to top |
|
 |  |
External

Since: Apr 30, 2008 Posts: 5
|
(Msg. 20) Posted: Thu Dec 18, 2008 3:25 pm
Post subject: Re: Trouble running BAT file from P9...? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi!
> Execute("cmd /c start "+GetAliasPath(":WORK:")+"\\mybat.bat",No,
> ExeShowNormal)
Warning: after START, the name/title of the windows (optional) is
between " " ; to avoid any ambiguity, add \"\"
Warning_2: GetAliasPath can return single \ ; do not forget to double
them.
Warning_3: GetAliasPath can return path with spaces ; do not forget
to add " (begin + end)
But, START is a good idea. I use often this way of making.
@-salutations
--
Michel Claveau >> Stay informed about: Trouble running BAT file from P9...? |
|
| Back to top |
|
 |  |
External

Since: Oct 15, 2008 Posts: 7
|
(Msg. 21) Posted: Mon Dec 22, 2008 11:26 am
Post subject: Re: Trouble running BAT file from P9...? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
> Warning: after START, the name/title of the windows (optional) is between
> " " ; to avoid any ambiguity, add \"\"
OK, but I never specify any title for the windows and never had any problem
but maybe there could be a situation?
Wait - now I see, if I DO add "" as per your warning 3 - then I MUST add the
title as well.
> Warning_2: GetAliasPath can return single \ ; do not forget to double
> them.
That I don't get? I think that it will _always_ return single backslashes
and that is also what I need when I run the start command. Or?
> Warning_3: GetAliasPath can return path with spaces ; do not forget to
> add " (begin + end)
Good point. As all my Paradox stuff is using good old DOS-standard for all
paths involved I never considered it.
This should work then even with paths with spaces.
Execute("cmd /c start \"\" \""+GetAliasPath(":WORK:")+"\\mybat.bat\"" , No,
ExeShowNormal)
Anders >> Stay informed about: Trouble running BAT file from P9...? |
|
| Back to top |
|
 |  |
External

Since: Apr 30, 2008 Posts: 5
|
(Msg. 22) Posted: Mon Dec 22, 2008 12:25 pm
Post subject: Re: Trouble running BAT file from P9...? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
| Related Topics: | renaming a file - After I export a db file to a text file, I tried to rename it as a unique file. Since this process is going to happen every month, I would like to place the renaming process in a script. The script works until I try to rename it. The following is in..
Reading a paradox file - Hi all, I have a paradox file and I need to convert it into a word document. Is it possible ? If so can anyone tell me how to do it ?The paradox file itself is 4.5 MB.
Calling CHM Help File From a Form - How do I do this? I have no problem calling a .HLP file using the following: method keyPhysical(var eventInfo KeyEvent) var theKey String endvar if eventInfo.isPreFilter() then ;// This code executes for each object on the form theKe...
import a CSV file w/ First row of data as field names by p.. - I need to import a CSV comma delimited file which has First row of data as field names by program not interactive way. Pdox Win (v. 11) INTERACTIVE import has the check mark box for First row of data as field names. Unfortunately ObjectPAL..
write to paradox via web - I have a client that uses software developed in delphi. It uses paradox database files. Can these be written to from the web? I am familiar with php/mysql...is there a similar capability with delphi/paradox? |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|