Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1997

Using batch file to open multiple text files using Notepad simultaneously

$
0
0
Not sure whether it's relevant here but here goes...

I want to open multiple text files in a folder using Notepad, all at the same time. Using command line window

Start ->Run -> Cmd
cd C:\Test
for %X in (*.txt) do notepad %X

will enable all the files open on top of one another.


I want to create a batch file to automate this process but by doing :

cmd
for %%X in ("C:\Test\"*.txt) do notepad %%X

will only open the first file File1.txt. After closing File1.txt, then only the second file...

Using batch file to open multiple text files using Notepad simultaneously

Viewing all articles
Browse latest Browse all 1997

Trending Articles