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();
        }
    }
}
原文地址:https://www.cnblogs.com/xiangnan/p/5773803.html