简体   繁体   中英

Create folder on desktop in Igor

I'm wondering if anybody knows how to create a folder on the desktop of your computer using code in Igor.

I know how to delete a folder on my physical computer

NewPath MyFolder "C:Users:MyNameUser:Desktop:MyFolder:"
DeleteFolder/P=MyFolder

But I don't see anything similar to this for creating a folder. I know how to create a data folder within Igor

NewDataFolder root:MyFolder

But can't figure out how to create a new folder on my desktop or something. Anybody have any ideas on how to do this?

Figured out the answer

All you need to do is say

NewPath/C MyFolder "C:User:MyNameUser:Desktop:MyFolder"

The /C flag creates a folder rather than just a reference path

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM