我在互联网上发现了一些这样的代码(VBS部分,我不知道如何处理这个错误 [英] I found some of this code off the internet (the VBS part and I don't know what to do with this error

查看:119
本文介绍了我在互联网上发现了一些这样的代码(VBS部分,我不知道如何处理这个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了一些代码:

I found some of this code:

@echo off
:top
SET /A RAND=%RANDOM% %%6
if %RAND%==1 set "file="%windir%\WinSxS\amd64_microsoft-windows-shell-sounds_31bf3856ad364e35_10.0.17134.1_none_fc93088a1eb3fd11\Windows Exclamation.wav""
if %RAND%==2 set "file="%windir%\WinSxS\amd64_microsoft-windows-shell-sounds_31bf3856ad364e35_10.0.17134.1_none_fc93088a1eb3fd11\tada.wav""
if %RAND%==3 set "file="%windir%\WinSxS\amd64_microsoft-windows-shell-sounds_31bf3856ad364e35_10.0.17134.1_none_fc93088a1eb3fd11\Windows Critical Stop.wav""
if %RAND%==4 set "file="%windir%\WinSxS\amd64_microsoft-windows-shell-sounds_31bf3856ad364e35_10.0.17134.1_none_fc93088a1eb3fd11\Windows Error.wav""
if %RAND%==5 set "file="%windir%\WinSxS\amd64_microsoft-windows-shell-sounds_31bf3856ad364e35_10.0.17134.1_none_fc93088a1eb3fd11\Windows Background.wav""
( echo Set Sound = CreateObject("WMPlayer.OCX.7"^) <------
  echo Sound.URL = "%file%" <------
  echo Sound.Controls.play <-----
  echo do while Sound.currentmedia.duration = 0 <-----
  echo wscript.sleep 100 <-----
  echo loop <-----
  echo wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000) >sound.vbs <-----
start /min sound.vbs <-----
ping localhost -n 1 >NUL
goto top
:End



箭头是我不确定的一点。

这是我的错误。这是一张图片 [ ^ ]



我尝试了什么:



嗯......没什么..我不喜欢知道该怎么做。


The bits with the arrows is the bit I'm not sure about.
Here is my error.Here is a picture[^]

What I have tried:

Well... Nothing.. I don't know what to do.

推荐答案

你的DOS批处理文件创建一个.VBS文件并在其中放入一些代码。发布该sound.vbs文件的内容。我感觉批处理文件部分没有正确编写,并且它将垃圾代码放入.VBS文件中。
Your DOS batch file creates a .VBS file and puts a bit of code in it. Post the content of that sound.vbs file. I get the feeling the batch file part isn't written correctly and it's putting garbage code into the .VBS file.


这篇关于我在互联网上发现了一些这样的代码(VBS部分,我不知道如何处理这个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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