Subject:Re: Post process for SVG Author:(Deleted User) Date:05 Apr 2002 08:11 AM
At 08.11 05/04/2002 -0500, you wrote:
>From: "Leonard Walstad"
>
>(using 3.1 Build 069s)
>
>I am post-processing to access SVG produced by my xslt.
>
>I add this command in the post-process dialogue:
>
>copy %1 %2
>
>But, I get this error:
>
>Post processing starting...
>Command line failed (error 2):
>copy "C:\WINNT\Profiles\LWALST~1.LWA\LOCALS~1\Temp\pro5F.xml"
>"C:\WINNT\Profiles\LWALST~1.LWA\LOCALS~1\Temp\pos60.svg"
>
>So, I issued the command manually in a cmd window. Then, I refreshed the
>stylus preview window and my SVG is imaged!
>
>What is wrong with my post-processing command?
Hi Leonard,
"copy" is an internal command, that is, is available only inside the
"cmd.exe" shell window. So you should either use an external command (such
as "xcopy") or specify "cmd /C copy %1 %2"
Subject:Post process for SVG Author:(Deleted User) Date:05 Apr 2002 09:17 AM
xcopy %1 %2 produces no error, but it appears that the output file is empty. (nothing in browser and I found an empty .svg appears each time I run the transformation)
Subject:Re: Post process for SVG Author:Minollo I. Date:05 Apr 2002 09:46 AM
br>
>xcopy %1 %2 produces no error, but it appears that the output file is
>empty. (nothing in browser and I found an empty .svg appears each time I
>run the transformation)
If you try running "xcopy %1 %2" manually, where %1 is a file and %2 is a
non-existing file, you will notice that xcopy prompts you to know if you
want to create a directory named %2 or a file named %2... I know there is
an option to force xcopy to consider %2 a directory and not a file; but you
want the vice-versa, so I'm not sure if you can forse that.
I've tested Alberto's suggestion: "cmd /C copy %1 %2" and it works fine.