zoukankan      html  css  js  c++  java
  • Export AOT TreeNode to the disk

    Using x++ code export AOT's Jobs  path treenode to the disk

    wrote by Jimmy on DEC.5th 2010

    Export Tree node to the disk
    static void Jimmy_ExportTreeNode(Args _args)
    {
    TreeNode treeNode;
    TreeNode childNode;
    FileIoPermission perm;

    #define.ExportFile2(@"c:\Jimmy_Tables.xpo")
    #define.ExportFile(@"c:\Jobs.xpo")
    #define.ExportMode("w")
    #AOT
    #WINAPI
    ;
    perm
    = new FileIoPermission(#ExportFile, #ExportMode);
    if (perm == null)
    return;
    perm.assert();

    treeNode
    = TreeNode::findNode(#JobsPath);
    if (treeNode != null)
    {
    childNode
    = treeNode.AOTfindChild(@"Jimmy_Tables");
    if(childNode)
    childNode.treeNodeExport(#ExportFile2);

    treeNode.treeNodeExport(#ExportFile);
    //export to all #JobsPath .xpo
    }

    WINAPI::copyFile(#ExportFile,strfmt(
    "%1%2%3 %4 %5.xpo",
    WinAPI::getFolderPath(#CSIDL_Personal),
    //my document
    "\\",
    systemdateget(),
    winAPI::getUserName(),
    "Jobs"),true);

    WINAPI::deleteFile(#ExportFile);

    CodeAccessPermission::revertAssert();
    }
  • 相关阅读:
    web页面静态化与伪静态化
    mysql 优化之空间换时间
    QPS、PV、UV、RT 之间的关系
    接口
    MySQL 索引
    名词解释
    go 语言标识符
    Git版本控制与工作流
    Maven安装与配置
    IDEA工具使用说明
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1897062.html
Copyright © 2011-2022 走看看