/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: MGruber 2 months ago
Senior White Belt
0

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)

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ