创建用于在Vista Home Premium中运行Synctoy 2.0的登录/注销脚本 [英] Creating a logon/logoff script for running Synctoy 2.0 in Vista Home Premium

查看:75
本文介绍了创建用于在Vista Home Premium中运行Synctoy 2.0的登录/注销脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个登录/注销脚本,以便我可以在登录时运行SyncToy并在我的Vista家庭高级计算机上注销。请帮我创建一个VB脚本来执行此操作。谢谢。谢谢。

推荐答案

这是一个我今晚刚刚开始工作的脚本,原因完全相同(在XP中)< br>
strJobName =" Thumb Drive - Hard Drive"
strCommandLine = chr(34)& " g:\Program Files\SyncToy 2.0\SyncToyCmd.exe" &安培; chr(34)& " -R" &安培; chr(34)& strJobName点击设置objWshShell = WScript.CreateObject(" WScript.Shell")点击objWshShell.Exec(strCommandLine)搜索结果您需要更改安装位置和strJobName,这将是名您的Synctoy工作。

只是你知道如果你在任何时候手动运行这个脚本它就像一个魅力,但出于某种原因,当我把它作为我的注销脚本它不起作用。这可能与Synctoy同步硬盘和usb拇指驱动器有关。

保重,

Esse Quam Videri
Here is a script I just got working tonight for the exact same reason (in XP)

strJobName = "Thumb Drive - Hard Drive"
strCommandLine = chr(34) & "g:\Program Files\SyncToy 2.0\SyncToyCmd.exe" & chr(34) & " -R" & chr(34) & strJobName
Set objWshShell = WScript.CreateObject("WScript.Shell")
objWshShell.Exec(strCommandLine)

You will need to change the install location and the strJobName, which will be the name of your Synctoy job.

Just so you know if you run this script at any time manually it works like a charm but for some reason when I have it as my logoff script it does not work. This may have something to do with my having Synctoy syncing a hard drive and a usb thumb drive.

Take care,

Esse Quam Videri


这篇关于创建用于在Vista Home Premium中运行Synctoy 2.0的登录/注销脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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