The function of the code is to find all MP3 files in each D drive and its subfolders.
Dim WshShell
set WshShell = CreateObject("wscript.Shell")
WshShell.Run "d:\findfile.bat"
The code in findfile.bat is as follows:
@echo off
dir *.mp3 /a-d /b /s>>result.txt
pause
This is the VBS I wrote to run a bat code, but it always prompts that the file is not found. Depressed. I don't know the reason. The output result is also not good. Why?
Dim WshShell
set WshShell = CreateObject("wscript.Shell")
WshShell.Run "d:\findfile.bat"
The code in findfile.bat is as follows:
@echo off
dir *.mp3 /a-d /b /s>>result.txt
pause
This is the VBS I wrote to run a bat code, but it always prompts that the file is not found. Depressed. I don't know the reason. The output result is also not good. Why?


