批处理程序在 Windows 7 中无法正确运行
我目前正在尝试弄清楚如何让批处理文件在 Windows 7 中正确运行。我在 Internet 上查找过,但没有成功地找到有关我遇到的问题的任何有用信息。
批处理文件 – 批处理文件用于打开一个窗口,允许学生在 ETS eCBT 创建的 TDSM 服务器上进行测试 – 该测试是 CLEP 考试。该批处理文件用于打开工作站供学生使用,看起来已加载,但欢迎/登录屏幕从未按预期出现。
WSK_LOAD.BAT
@echo off
rem--------------------------------------------------------------------
rem !!! DO NOT REMOVE OR MODIFY THIS FILE !!!
rem !!! THIS FILE IS USED BY THE eCBT SYSTEM !!!
rem--------------------------------------------------------------------
SET ECBT_DEFAULT_SERVER_NAME=WR-TESTING1
SET ECBT_BATCH_HOME=C:\ETSBATCH
SET ECBT_HOME=\\WR-TESTING1\tdms
set ECBT_LOGFILE=%ECBT_BATCH_HOME%\wsk.log
SET ECBT_CLIENT_VERSION=4.0
rem----------------------------------------------------------------------
if exist %ECBT_HOME%\client\bin\wks.bat goto avail
echo Cannot access %ECBT_HOME%!
echo Attempting to open the share …
echo If you see the share window, please close it to proceed …
rem------------------------------------------------------------------------
:avail
%ECBT_HOME%\client\bin\wks.bat
我已经尝试了我能想到的一切:以管理员身份运行,将文件移动到从硬盘运行,确保与该程序关联的所有文件和文件夹都与用户和计算机共享,具有 Windows 7 运行兼容性(这表明它确实如此)不包含要运行的.exe 文件,并重写了该文件。
我知道它正在连接到 TDMS 服务器,因为我可以在服务器上看到它。它唯一不做的就是打开登录测试服务器所需的窗口。窗口按预期打开,但不产生登录框。 感谢任何和所有的帮助, 詹妮弗
I am currently trying to figure out how to get a batch file to run correctly in Windows 7. I have looked on the Internet and have not had much success in finding any useful information on the issue I am encountering.
BATCH FILE – The batch file is to open a window to allow students to test on a TDSM server created by ETS eCBT – The test is a CLEP Exam. The batch file is to open the workstation for students to use and it looks like it loads but the Welcome/Login Screen never appears as it should.
WSK_LOAD.BAT
@echo off
rem--------------------------------------------------------------------
rem !!! DO NOT REMOVE OR MODIFY THIS FILE !!!
rem !!! THIS FILE IS USED BY THE eCBT SYSTEM !!!
rem--------------------------------------------------------------------
SET ECBT_DEFAULT_SERVER_NAME=WR-TESTING1
SET ECBT_BATCH_HOME=C:\ETSBATCH
SET ECBT_HOME=\\WR-TESTING1\tdms
set ECBT_LOGFILE=%ECBT_BATCH_HOME%\wsk.log
SET ECBT_CLIENT_VERSION=4.0
rem----------------------------------------------------------------------
if exist %ECBT_HOME%\client\bin\wks.bat goto avail
echo Cannot access %ECBT_HOME%!
echo Attempting to open the share …
echo If you see the share window, please close it to proceed …
rem------------------------------------------------------------------------
:avail
%ECBT_HOME%\client\bin\wks.bat
I have tried everything I can think of: Run as Administrator, Moved files to run from the HD, made sure all files and folders associated with the program were shared with users and computers, had Windows 7 run compatibility which says it does not contain an .exe file to run, and re-wrote the file.
I know it is connecting to the TDMS server as I can see it on the server. The only thing it does not do is bring up the window which is necessary to login to the testing server. The window opens like it should but does not produce the login boxes.
Any and all help is appreciated,
Jennifer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我怀疑这对您有帮助,但在联系 ETS 后,我发现客户端工作站脚本与 Windows 7 64 位不兼容。尽管它确实适用于 Windows 7 32 位。
I doubt this helps you at this point, but after contacting ETS, I found that the client side workstation script is not compatible with Windows 7 64-bit. Although it does work with Windows 7 32-bit.
好吧,我的第一个建议是尝试调试“WKS_LOAD.BAT”脚本以检查您可能忽略的错误或错误。
Well my first recommendation is to try debugging your "WKS_LOAD.BAT" script to check for errors or mistakes that you may have over-looked.
确保您的服务器已启动。
如果您在服务器上,它可能永远不会自动找到服务器(本身)。您应该在客户端安装时自动找到它,但必须在服务器上手动指定它。幸运的是,从主机服务器连接时默认设置有效。
我联系了他们的支持热线,但收到的建议毫无价值、信息不通,毫无结果。
如果您没有收到指定服务器的提示,则说明有其他问题。该系统严重依赖Java。该批处理脚本调用另一个批处理脚本来检查更新,然后将 jar 可执行文件加载到 JVM 中。
Make sure your server is started.
If you are on the server it may not ever find the server (itself) automatically. You should find it automatically on a client install, but will have to specify it on the server manually. Luckily the default settings work when connecting from the host server.
I contacted their support line and received worthless, uninformed advice that led nowhere.
If you do not get the prompt to specify a server, something else is wrong. This system relies heavily on Java. That batch script calls another batch script which checks for updates, then loads a jar executable into the JVM.