<div dir="ltr"><div><br></div>Is it just something dumb maybe like you have to use "Start"...running your command as a separate process....or does Filepro automatically send that when you execute the system command? <div><br></div><div>Roland you said you tried many different forms of the command so I am assuming you tried this already, <span style="line-height:1.5">But Nancy mentioned that she runs into this problem and gets around it by writing a script and "Call"ing it...would execute the script launch it in a separate process correct?</span></div><div><br></div><div>What if you did something like: system "cmd.exe /C <span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px;line-height:1.5">"copy /y c:" { bs { "test.txt testnew.txt > logfile" </span></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px;line-height:1.5"><br></span></div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 22, 2016 at 5:09 AM <<a href="mailto:filepro-list-request@lists.celestial.com">filepro-list-request@lists.celestial.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Filepro-list mailing list submissions to<br>
<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" rel="noreferrer" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:filepro-list-request@lists.celestial.com" target="_blank">filepro-list-request@lists.celestial.com</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:filepro-list-owner@lists.celestial.com" target="_blank">filepro-list-owner@lists.celestial.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Filepro-list digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: A True Puzzle (Nancy Palmquist)<br>
2. Re: system command (Nancy Palmquist)<br>
3. Re: system command (Kenneth Brody)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 21 Jun 2016 10:03:51 -0400<br>
From: Nancy Palmquist <<a href="mailto:nlp@vss3.com" target="_blank">nlp@vss3.com</a>><br>
To: <a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a><br>
Subject: Re: A True Puzzle<br>
Message-ID: <<a href="mailto:07694536-f71c-320f-34b7-3a9671e100d0@vss3.com" target="_blank">07694536-f71c-320f-34b7-3a9671e100d0@vss3.com</a>><br>
Content-Type: text/plain; charset=windows-1252; format=flowed<br>
<br>
A resolution but not a solution to my puzzle. I rebooted the server<br>
that was running this process and then the process worked as it should.<br>
<br>
I have no idea what difference that made since the processing would run<br>
in the Debug state but not without.<br>
<br>
Ken - it was not running and the proof was that the two numbers<br>
displayed in the middle of the screen did not change for over 5<br>
minutes. If I ran it without debug on, the two numbers stated the same<br>
and never did anything.<br>
If I used the debug mode to step into the programming and ran the<br>
process for a number of records, when I stopped and hit CONTINUE or QUIT<br>
the two numbers displayed for Selected and Generated, never changed<br>
after that point.<br>
<br>
Break did not work to stop the process either. Only way out was to X<br>
the window.<br>
<br>
I wish I could have figured out what caused it to stick, but since I got<br>
a resolution I have to be happy with that and say that since it has not<br>
happened in the +8 years the process has been in place, it is not likely<br>
to happen again in the near future.<br>
<br>
I expect it is some weird WINDOWS thing.<br>
<br>
Nancy<br>
<br>
On 6/20/2016 1:12 PM, Nancy Palmquist via Filepro-list wrote:<br>
> I have a strange puzzle.<br>
><br>
> A process that has worked for years on a Windows platform, filepro<br>
> version 5.0.<br>
><br>
> When I run it the normal way, it seems to stop before doing anything<br>
> at the first selected record and just sits there.<br>
><br>
> If I add -db to the command line, the debugger starts and if I hold<br>
> down ENTER to step through the records with the debug it runs correctly.<br>
><br>
> I added a SHOW on the third line so I could watch what happened when<br>
> DEBUG is not on and the show is never displayed when the process is<br>
> run normally.<br>
><br>
> If I hit CONTINUE or QUIT in the debugger, it just hangs where ever I<br>
> left it in the count down.<br>
><br>
> The command line has a -u and I double checked it is not a locked<br>
> record issue. Also verified by the fact that I can step past the<br>
> records in the debugger.<br>
><br>
> I rebuilt indexes - who knows right?<br>
><br>
> Nothing has changed with regard to the data structure or programming<br>
> on this for many years. It prints to a file, so it is not waiting for<br>
> a printer to be online.<br>
><br>
> What am I missing?<br>
><br>
> Nancy<br>
><br>
<br>
--<br>
Nancy Palmquist MOS & filePro Training Available<br>
Virtual Software Systems Web Based Training and Consulting<br>
PHONE: (412) 835-9417 Web site: <a href="http://www.vss3.com" rel="noreferrer" target="_blank">http://www.vss3.com</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 21 Jun 2016 10:17:48 -0400<br>
From: Nancy Palmquist <<a href="mailto:nlp@vss3.com" target="_blank">nlp@vss3.com</a>><br>
To: <a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a><br>
Subject: Re: system command<br>
Message-ID: <<a href="mailto:54777fc6-0469-97a1-36cb-7a7570e53ffd@vss3.com" target="_blank">54777fc6-0469-97a1-36cb-7a7570e53ffd@vss3.com</a>><br>
Content-Type: text/plain; charset=windows-1252; format=flowed<br>
<br>
Roland,<br>
<br>
I have seen this behavior and I think it is a security thing for some<br>
commands.<br>
<br>
First, depending on your version of Windows, you might try this syntax:<br>
<br>
system noredraw "copy /b c:"{bs{"test.txt testnew.txt"<br>
<br>
Second, some script commands just will not work in the SYSTEM command<br>
and when I hit one of those what I do is write a script and call the script.<br>
<br>
For example,<br>
<br>
script name: copyit.bat<br>
rem routine to copy a file<br>
copy /b %1 %2<br>
<br>
-----------------------------------------------------<br>
<br>
Then the system command would look like this:<br>
declare scriptpath, filename<br>
scriptpath="C:/myscripts/"<br>
filename=c:"{bs{"test.txt"<br>
scriptpath=xlate(scriptpath,"/",chr("92")) 'use this to flip slashes<br>
system noredraw scriptpath{"copyit.bat"<filename<"testnew.txt"<br>
<br>
I realize this could use a bit of enhancement for errors and such but<br>
give it a try.<br>
<br>
<br>
Nancy<br>
<br>
On 6/17/2016 2:05 PM, Roland Fischer via Filepro-list wrote:<br>
> Hi Ken<br>
> I am having a problem executing a system command on a Windows 7 machine attached to a windows 2012 network<br>
><br>
> The command does not give me an error, but the command is not executed.<br>
> If I go to a dos prompt and run the command all is as it should be.<br>
> I have tried many different forms of the command with no resolution.<br>
> The system command I am trying to execute is;<br>
> system "copy /y c:" { bs { "test.txt testnew.txt > logfile"<br>
> note 'bs' field contains ascii 92 - backslash<br>
> Any help would be appreciated.<br>
> RegardsRoland Fischer<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20160617/101369d0/attachment.html" rel="noreferrer" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20160617/101369d0/attachment.html</a>><br>
> _______________________________________________<br>
> Filepro-list mailing list<br>
> <a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.com</a><br>
> Subscribe/Unsubscribe/Subscription Changes<br>
> <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" rel="noreferrer" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
><br>
<br>
--<br>
Nancy Palmquist MOS & filePro Training Available<br>
Virtual Software Systems Web Based Training and Consulting<br>
PHONE: (412) 835-9417 Web site: <a href="http://www.vss3.com" rel="noreferrer" target="_blank">http://www.vss3.com</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 21 Jun 2016 11:18:17 -0400<br>
From: Kenneth Brody <<a href="mailto:kenbrody@spamcop.net" target="_blank">kenbrody@spamcop.net</a>><br>
To: <a href="mailto:nancy.palmquist@vss3.com" target="_blank">nancy.palmquist@vss3.com</a>, <a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a><br>
Cc: Nancy Palmquist <<a href="mailto:nlp@vss3.com" target="_blank">nlp@vss3.com</a>><br>
Subject: Re: system command<br>
Message-ID: <<a href="mailto:cf5e1ad7-2f2c-371c-7143-66fa966489f9@spamcop.net" target="_blank">cf5e1ad7-2f2c-371c-7143-66fa966489f9@spamcop.net</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
On 6/21/2016 10:17 AM, Nancy Palmquist via Filepro-list wrote:<br>
[...]<br>
> Second, some script commands just will not work in the SYSTEM command and<br>
> when I hit one of those what I do is write a script and call the script.<br>
[...]<br>
<br>
Everything "should" run via SYSTEM if it runs from the command prompt. If<br>
you have any commands that don't for some reason, could you let fpsupport<br>
know, along with some examples showing them failing?<br>
<br>
--<br>
Kenneth Brody<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.com</a><br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" rel="noreferrer" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Filepro-list Digest, Vol 149, Issue 26<br>
*********************************************<br>
</blockquote></div></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Jason Garner<br></div><div style="font-size:12.8000001907349px">Systems Administrator<br>1801 Oberlin Rd, Suite 204</div><div style="font-size:12.8000001907349px">Middletown, PA 17057<br><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice">Work <a href="tel:717-985-1122" value="+17179851122" style="color:rgb(17,85,204)" target="_blank">717-985-1122</a></span></span></span></span></span> x 1139</div><div style="font-size:12.8000001907349px">Mobile 717-645-3521</div><div style="font-size:12.8000001907349px"><a href="mailto:jason.garner@evalsvs.com" target="_blank">jason.garner@evalsvs.com</a></div></div></div>