svn dump 因 WScript.Shell 失败 [英] svn dump fails with WScript.Shell

查看:45
本文介绍了svn dump 因 WScript.Shell 失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

var WshShell = new ActiveXObject("WScript.Shell");
var commandLine = "svnadmin dump " + repoFullPath + " > " + repoName + ".dumpfile";
WshShell.Exec(commandLine)

我试图在 Windows 中的 cscript 上方运行,但它似乎什么也没做.它不会创建转储文件.

I am trying to run above cscript in Windows but it seems like, it's doing nothing. It doesn't create the dump file.

我做错了什么?

推荐答案

您尚未为 repoFullPath 或 repoName 赋值.在 Exec 行之前,放

You have not assigned values to repoFullPath or repoName. Before the Exec line, put

WScript.Echo(commandLine);

以便您可以看到脚本试图运行的内容.

so that you can see what the script is trying to run.

这篇关于svn dump 因 WScript.Shell 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆