>fdr = Upper(ChrTran(sys(0),'#',""))
>fdr = Upper(ChrTran(fdr,' ',""))
>Create Cursor &fdr (battext C(100))
>Insert InTo &fdr(battext) Values('Request;')
>Insert InTo &fdr(battext) Values('PLOTTER=' + '"sample postscript plotter"' +';')
>Insert InTo &fdr(battext) Values('NEWPLOT=' + "'\\gv-engineering\drawing\wgen\prerel\852706 FA014.CDD'" +';')
>Insert InTo &fdr(battext) Values('COPIES= 1;')
I've no idea why it's happenning but you don't have to create unique cursor name in this case. A cursor name isn't shared between different instances of an application. The following code should work.
Create Cursor BatCursor (battext C(100))
Insert InTo BatCursor (battext) Values('Request;')
Insert InTo BatCursor (battext) Values('PLOTTER=' + '"sample postscript plotter"' +';')
Insert InTo BatCursor (battext) Values('NEWPLOT=' + ;
"'\\gv-engineering\drawing\wgen\prerel\852706 FA014.CDD'" +';')
Insert InTo BatCursor (battext) Values('COPIES= 1;')
You can also consider using STRTOFILE() function to create your batch file.
BTW, what version of VFP are you working with?
--sb--