system command
Nancy Palmquist
nlp at vss3.com
Tue Jun 21 07:17:48 PDT 2016
Roland,
I have seen this behavior and I think it is a security thing for some
commands.
First, depending on your version of Windows, you might try this syntax:
system noredraw "copy /b c:"{bs{"test.txt testnew.txt"
Second, some script commands just will not work in the SYSTEM command
and when I hit one of those what I do is write a script and call the script.
For example,
script name: copyit.bat
rem routine to copy a file
copy /b %1 %2
-----------------------------------------------------
Then the system command would look like this:
declare scriptpath, filename
scriptpath="C:/myscripts/"
filename=c:"{bs{"test.txt"
scriptpath=xlate(scriptpath,"/",chr("92")) 'use this to flip slashes
system noredraw scriptpath{"copyit.bat"<filename<"testnew.txt"
I realize this could use a bit of enhancement for errors and such but
give it a try.
Nancy
On 6/17/2016 2:05 PM, Roland Fischer via Filepro-list wrote:
> Hi Ken
> I am having a problem executing a system command on a Windows 7 machine attached to a windows 2012 network
>
> The command does not give me an error, but the command is not executed.
> If I go to a dos prompt and run the command all is as it should be.
> I have tried many different forms of the command with no resolution.
> The system command I am trying to execute is;
> system "copy /y c:" { bs { "test.txt testnew.txt > logfile"
> note 'bs' field contains ascii 92 - backslash
> Any help would be appreciated.
> RegardsRoland Fischer
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20160617/101369d0/attachment.html>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
--
Nancy Palmquist MOS & filePro Training Available
Virtual Software Systems Web Based Training and Consulting
PHONE: (412) 835-9417 Web site: http://www.vss3.com
More information about the Filepro-list
mailing list