|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Batch file to open multiple text files simultaneously using Notepad
Not sure whether it's relevant here or not 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 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. |
|
#2
|
||||
|
||||
|
It's been a long while, but I believe in most Linux distros if you add a '&' or a '%' after the command it won't wait for a termination signal before proceeding. Try that.
__________________
Adam TT |
|
#3
|
|||
|
|||
|
Quote:
I've attempted to find a way to run a background process in system exec several times with no luck... ![]() |
|
#4
|
||||
|
||||
|
> 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. Try for %%X in ("C:\Test\"*.txt) do start /wait notepad %%X
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Windows Help > Batch file to open multiple text files simultaneously using Notepad |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|