Dear Experts,
I need a syntax for reading text from command prompt.
i got idea like Shell "Dir C:\*.* > " & app.path & "\test.txt"
but there is an error RUN TIME ERROR 53 FILE NOT FOUND.

I already created test.txt file but same result.

If you wish to read the contents of a directory you would be better to use the filesystem object.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.