Hello,
I try to output some files from an ulp, in a specific folder. I can create
the desired path, but "output" function don't create the folder.
I can use the "dlgDialog" function to create the folder, but I don't want
this aproach.
Hello,
I try to output some files from an ulp, in a specific folder. I can create
the desired path, but "output" function don't create the folder.
I can use the "dlgDialog" function to create the folder, but I don't want
this aproach.
"eSilviu" <silviu.epure@ugal.ro> wrote in message
news:hhsh7j$fq9$1@cheetah.cadsoft.de...
Hello,
I try to output some files from an ulp, in a specific folder. I can create
the desired path, but "output" function don't create the folder.
I can use the "dlgDialog" function to create the folder, but I don't want
this aproach.
WELL, IT SEEMS THAT USERS THAT ASK HOW TO MOVE A COMPONENT FROM TOP LAYER TO
THE BOTTON GET ANSWER.
When someone puts a question with not-so-obvious solution, nobody try to
answer.
This can't be named "SUPPORT".
On 01/07/10 12:48, eSilviu wrote:
"eSilviu" <silviu.epure@ugal.ro> wrote in message
news:hhsh7j$fq9$1@cheetah.cadsoft.de...
Hello,
I try to output some files from an ulp, in a specific folder. I can create
the desired path, but "output" function don't create the folder.
I can use the "dlgDialog" function to create the folder, but I don't want
this aproach.
WELL, IT SEEMS THAT USERS THAT ASK HOW TO MOVE A COMPONENT FROM TOP LAYER TO
THE BOTTON GET ANSWER.
When someone puts a question with not-so-obvious solution, nobody try to
answer.
This can't be named "SUPPORT".
It's our first day back in the office after the Christmas break, and
we're in the process of answering the postings right now. So a question
from an other user got answered before yours - is that a reason to become
loud? What's wrong with answering simple questions first?
Klaus Schmidinger
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Pleidolfweg 15 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
On 01/04/10 11:52, eSilviu wrote:
Hello,
I try to output some files from an ulp, in a specific folder. I can create
the desired path, but "output" function don't create the folder.
I can use the "dlgDialog" function to create the folder, but I don't want
this aproach.
There is currently no direct function to create a new folder from
a ULP. What you can do at te moment is to use the system() function,
like in
system("mkdir foldername");
We are planning to implement an mkdir() function in a future version.
Klaus Schmidinger
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Pleidolfweg 15 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
"Klaus Schmidinger" <Klaus.Schmidinger@cadsoft.de> wrote in message
news:hi737i$hf5$1@cheetah.cadsoft.de...
On 01/04/10 11:52, eSilviu wrote:
Hello,
I try to output some files from an ulp, in a specific folder. I can
create
the desired path, but "output" function don't create the folder.
I can use the "dlgDialog" function to create the folder, but I don't want
this aproach.
There is currently no direct function to create a new folder from
a ULP. What you can do at te moment is to use the system() function,
like in
system("mkdir foldername");
We are planning to implement an mkdir() function in a future version.
Klaus Schmidinger
Widows XP:
string filePath;
if (board) board(B) {filePath = filedir(B.name);}
filePath=filePath+"output";
string comanda="mkdir "+filePath;
system(comanda);
Will give me the following command to be sent to OS:
"mkdir D:/Documents/Proiecte/2009/temp/555/output"
witch... is wrong, since "\" should be used, not "/"
So,.. any other ideas?
PS: problem is not the mkdir() function (that does not exist), but the
"output()" function, that can't create path do the desired file.
On 09.01.2010 11:34, eSilviu wrote:
"Klaus Schmidinger" <Klaus.Schmidinger@cadsoft.de> wrote in message
news:hi737i$hf5$1@cheetah.cadsoft.de...
On 01/04/10 11:52, eSilviu wrote:
Hello,
I try to output some files from an ulp, in a specific folder. I can
create
the desired path, but "output" function don't create the folder.
I can use the "dlgDialog" function to create the folder, but I don't want
this aproach.
There is currently no direct function to create a new folder from
a ULP. What you can do at te moment is to use the system() function,
like in
system("mkdir foldername");
We are planning to implement an mkdir() function in a future version.
Klaus Schmidinger
Widows XP:
string filePath;
if (board) board(B) {filePath = filedir(B.name);}
filePath=filePath+"output";
string comanda="mkdir "+filePath;
system(comanda);
Will give me the following command to be sent to OS:
"mkdir D:/Documents/Proiecte/2009/temp/555/output"
witch... is wrong, since "\" should be used, not "/"
So,.. any other ideas?
Oh well, one of those "original sins" of Microsoft...
You can do
string a[];
strsplit(a, filePath, '/');
filePath = strjoin(a, '
');
Klaus Schmidinger
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Pleidolfweg 15 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
Klaus Schmidinger wrote on Fri, 08 January 2010 06:00
system("mkdir foldername");
Won't that pop up that dialog warning the user that a ULP is trying to
execute a system program? That would get annoying really fast.
--
Browser access to CadSoft Support Forums at http://www.eaglecentral.ca
"Olin Lathrop" <eagle@embedinc.com> wrote in message
news:hia7oh$2mu$1@cheetah.cadsoft.de...
Klaus Schmidinger wrote on Fri, 08 January 2010 06:00
system("mkdir foldername");
Won't that pop up that dialog warning the user that a ULP is trying to
execute a system program? That would get annoying really fast.
--
already annoying from the first apparition.
and IMHO, you can't put a SO in danger if you create a folder, so that user
to give the accept for this. (even if you create 1000 folders, I don't see a
major security problem)