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 File2.txt will open and so on.
Is there a way for me to automate this process using batch file or any other programming language that'll be more suitable e.g. VB, Perl, C/C++, etc.
Need your input and suggestions as still new to programming. Thanks.
Based on this discussion: Hello!! Making a Simple Batch File... [Archive] - [H]ard|Forum it looks like you need:
Code:cmd for %%X in ("C:\Test\"*.txt) do start notepad %%X
do you not have to close a for loop in windows ?
As I know in windows it happens automatically ...we don't need to close.
Microsoft: "You've got questions. We've got dancing paperclips
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks