How i can make a vbs or batch script when i put a file in namet data and i open vbs or batch script then script find a file and open then pls help
How i can make a vbs or batch script when i put a file in namet data and i open vbs or batch script then script find a file and open then pls help
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
MGruber
4 years ago
To search for file with the whole path try this: for /r C:\temp\test %x in (*.txt) do echo %x
It finds all txt files in C:\temp\test and in Subfolders. If you replace "echo %x" with "notepad %x" the files get opened with notepad.
If you need to run this in a Batch File you need to replace %x with %%x (x can be any letter you prefer also uppercase)