Question: Given that the WIN98 installation file is on drive D but I don't know the directory, I want to get its SETUP.EXE file (requiring precise positioning, and not SETUP.EXE of non-WIN98 software), and finally get its complete path, such as: D:\PWIN98\WIN98\SETUP.EXE, and run it. How to achieve it????
Analysis: First, search for files with the unique characteristics of WIN98 in the same directory where the WIN98 installation file is located, such as Win98_30.cab (the method is DIR D:Win98_30.cab /S /B>1.TXT) The content of 1.TXT should be:
D:\PWIN98\WIN98\Win98_30.cab, replace Win98_30.cab with SETUP.EXE
Difficulty: The last step is how to "replace Win98_30.cab with SETUP.EXE"???
I thought of the function of extracting a string segment in QB. As long as I extract all the characters to the left of Win98_30.cab and then combine it with SETUP.EXE, it will be successful. The problem is that I don't want to use QB but use batch processing. How to achieve it???
I am the webmaster of DOS Home. The above program will be used in the newly released "Super Emergency Disk"
Please help everyone. Thank you all
Analysis: First, search for files with the unique characteristics of WIN98 in the same directory where the WIN98 installation file is located, such as Win98_30.cab (the method is DIR D:Win98_30.cab /S /B>1.TXT) The content of 1.TXT should be:
D:\PWIN98\WIN98\Win98_30.cab, replace Win98_30.cab with SETUP.EXE
Difficulty: The last step is how to "replace Win98_30.cab with SETUP.EXE"???
I thought of the function of extracting a string segment in QB. As long as I extract all the characters to the left of Win98_30.cab and then combine it with SETUP.EXE, it will be successful. The problem is that I don't want to use QB but use batch processing. How to achieve it???
I am the webmaster of DOS Home. The above program will be used in the newly released "Super Emergency Disk"
Please help everyone. Thank you all
DOS之家 http://doshome.com 站长 葛明阳


