Windows批量复制命令无法正常工作

时间:2017-11-17 09:55:32

标签: windows batch-file

windows批量复制cmd单独无法正常工作

@echo off
FOR /F "tokens=2-4 delims=/ " %%i IN ('date /t') DO SET DATE=%%k%%i%%j
REN \\server1\vinoth_new\vinoth\Test"*.txt*" SubroQuePrint.txt
copy \\server1\vinoth_new\vinoth\Test\SubroQuePrint.txt \\server1\vinoth_new
move /Y \\server1\vinoth_new\SubroQuePrint.txt 
\\server1\vinoth_new\Test\%DATE%SubroQuePrint.txt

1 个答案:

答案 0 :(得分:0)

通过用空格而不是换行符分隔最后两行来采用@ Compo的注释。

const passport = require('passport'); const GoogleStrategy = require('passport-google-oauth20'); const keys = require('./keys'); const User = require('../models/user'); passport.serializeUser((user, done) => { done(null, user.id) }); passport.deserializeUser((id, done) => { User.findById(id).then(foundUser => done(null, foundUser)) .catch(err => console.log(err)); }); passport.use( new GoogleStrategy({ callbackURL: '/auth/google/redirect', clientID: keys.google.clientID, clientSecret: keys.google.clientSecret }, (accessToken, refreshToken, userInfo, done) => { User.find({ googleId: userInfo.id }).then(foundUser => { if (!foundUser) { new User({ userName: userInfo.displayName, googleId: userInfo.id }) .save().then((createdUser) => done(null, createdUser)) .catch(err => console.log(err)); } else { done(null, foundUser); } }) .catch(err => console.log(err)); }) ); 命令的结尾有点奇怪。 最后添加copy,或者\后跟所需的文件名:

\