element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) How can I create a folder from an ulp?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 7 replies
  • Subscribers 176 subscribers
  • Views 751 views
  • Users 0 members are here
Related

How can I create a folder from an ulp?

esilviu
esilviu over 15 years ago

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.

 

 

 

  • Sign in to reply
  • Cancel
  • esilviu
    esilviu over 15 years ago

     

    "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".

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • kcadsoft
    kcadsoft over 15 years ago

    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

    _______________________________________________________________

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • kcadsoft
    kcadsoft over 15 years ago

    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

    _______________________________________________________________

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • esilviu
    esilviu over 15 years ago

     

    "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.

     

     

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • kcadsoft
    kcadsoft over 15 years ago

    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

    _______________________________________________________________

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 15 years ago in reply to kcadsoft

    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

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • esilviu
    esilviu over 15 years ago

     

    "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)

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube