zoukankan      html  css  js  c++  java
  • windows上安装nodejs,升级npm,安装webpack指南

    安装nodejs

    https://nodejs.org/en/

    安装webpack和其他一些常用的

    npm install -g node-gyp webpack coffee-script

    监控

    webpack -p --progress --dispaly-chunks --watch --color --config webpack.config.js

    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    //using System.Runtime.InteropServices.ComTypes;
    using Word = Microsoft.Office.Interop.Word;
    
    namespace readDOC {
        class Program {
            static void Main(string[] args) {
                string cd = Directory.GetCurrentDirectory();
                Word.Application word = new Word.Application();
                List<string> dirs = new List<string>();
                foreach (string dir in Directory.GetFiles(@".", "*.doc?")){
                    if (dir.IndexOf('~') == -1) {
                        dirs.Add(cd + dir.Substring(1));
                    }
                }
                foreach (string fn in dirs) {
                    Console.WriteLine(@"START:{0}.", fn);
                    Word.Document docs = word.Documents.Open(fn);
                    try {
                        docs.Protect(Word.WdProtectionType.wdAllowOnlyReading);
                        Console.WriteLine(@"OK:{0}.", fn);
                    } catch (Exception e) {
                        Console.WriteLine(@"NOT OK:{0}.", fn);
                    } finally {
                        docs.Close();
                    }   
                }
                word.Quit();
                Console.WriteLine("Press any key to finish");
                Console.ReadLine();
            }
        }
    }
    
  • 相关阅读:
    Redis涉及的概念
    Redis高级教程
    Redis基础入门
    Java多线程面试题
    Java集合面试题
    Java集合基础
    Java基础面试题总结
    Zookeeper Basics
    GitLab基础入门
    阿里云ECS服务器Docker安装Tomcat过程记录
  • 原文地址:https://www.cnblogs.com/xiangnan/p/5773803.html
Copyright © 2011-2022 走看看