Board logo

标题: [文件操作] 求3389连接输入密码的实现 [打印本页]

作者: dujia008    时间: 2009-6-26 20:03     标题: 求3389连接输入密码的实现

求那位老大给我修改下面这个批处理谢谢! 这个BAT 批处理是 3389终端连接输入帐号密码的连接 希望那个老大帮忙修改下 可以输入密码 下面代码只能输入帐号


@echo off
color 16
del *.rdp
cls
cd.>3389.txt
set /p b=name:
for /f "delims=" %%a in (3389.txt) do (
echo username:s:%b%>>%%a.rdp
echo full address:s:%%a>>%%a.rdp
echo screen mode id:i:2>>%%a.rdp
echo desktopwidth:i:1024>>%%a.rdp
echo desktopheight:i:768>>%%a.rdp
echo session bpp:i:32>>%%a.rdp
echo winposstr:s:0,3,0,0,800,600>>%%a.rdp
echo compression:i:1>>%%a.rdp
echo keyboardhook:i:2>>%%a.rdp
echo displayconnectionbar:i:1>>%%a.rdp
echo disable wallpaper:i:1>>%%a.rdp
echo disable full window drag:i:1>>%%a.rdp
echo allow desktop composition:i:0>>%%a.rdp
echo allow font smoothing:i:0>>%%a.rdp
echo disable menu anims:i:1>>%%a.rdp
echo disable themes:i:0>>%%a.rdp
echo disable cursor setting:i:0>>%%a.rdp
echo bitmapcachepersistenable:i:1>>%%a.rdp
echo audiomode:i:0>>%%a.rdp
echo redirectprinters:i:1>>%%a.rdp
echo redirectcomports:i:0>>%%a.rdp
echo redirectsmartcards:i:1>>%%a.rdp
echo redirectclipboard:i:1>>%%a.rdp
echo redirectposdevices:i:0>>%%a.rdp
echo autoreconnection enabled:i:1>>%%a.rdp
echo authentication level:i:0>>%%a.rdp
echo prompt for credentials:i:0>>%%a.rdp
echo negotiate security layer:i:1>>%%a.rdp
echo remoteapplicationmode:i:0>>%%a.rdp
echo alternate shell:s:>>%%a.rdp
echo shell working directory:s:>>%%a.rdp
echo gatewayhostname:s:>>%%a.rdp
echo gatewayusagemethod:i:4>>%%a.rdp
echo gatewaycredentialssource:i:4>>%%a.rdp
echo gatewayprofileusagemethod:i:0>>%%a.rdp
echo promptcredentialonce:i:1>>%%a.rdp)
echo 按任意键退出
pause>nul


以上 代码是一个3389连接器的代码  但是只能输入帐号 我想实现同时也能输入密码  求高手修改 再次跪谢!!!

[ 本帖最后由 dujia008 于 2009-6-26 21:48 编辑 ]
作者: dujia008    时间: 2009-6-26 20:11

怎么没人回答我的问题啊?




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2