Text files do not open in the order specified by Batch file

Hello

I have the batch such as below:

Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00625\File1.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00626\File2.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00630\File3.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00635\File4.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00636\File5.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00640\File6.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00645\File7.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00650\File8.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00670\File9.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00680\File10.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00685\File11.999".
Start "" "C:\Program Files\Notepad++\notepad++.exe" "C:\Temp\0331\S00695\File12.999".

It opens 1 instance of NotePad ++ (similar like UltraEdit but FREE) and opens all the files above (I associated with the extension.999 NotePad ++) as tabs within the app but it opens them in any order (9,8,1,6,2,10,3, etc., etc.) and not in the order I specified above (File1.999, then File2.999, then File3.999, etc., etc.).

What additional syntax is necessary for NotePad ++ to open them in the order (that I have loaded in commands) in 1 case?

Thank you

I never really came across a need to pack in batch files, but I think I found the answer.  StackOverflow.com has a discussion about it here:

http://StackOverflow.com/questions/69068/long-commands-split-over-multiple-lines-in-Vista-DOS-batch-bat-file

It seems that you just use a ^ mark to denote a continuation.  So, something like this:

Notepad.exe "C:\Temp\File1.txt" "C:\Temp\File2.txt ^.

«C:\Temp\File3.txt' C:\Temp\File4.txt"^ «»

"C:\Temp\File5.txt" "C:\Temp\File6.txt".

Just note that you must make sure that the spaces are included if need be, even if a winding is there.

Tags: Windows

Similar Questions

  • Synchronization problem; Functions do not execute in the order specified

    I have a timing problem. Three functions are called
    in this order:

    InsertMenu();                  Inserts a record in the menu in the database
    getLastRecordId();           Gets the primary key of the inserted record just menu
    Stores recovered key in a textTextInput control
    PrepareMenuItemInsert(); Keys to textInput saved readings
    Inserts a menu item record, affecting a link
    menu using the stored key file

    Everything works but at the point when the PrepareMenuItemInsert() function
    runs, the textInput control has not yet been updated by the getLastRecordId()
    function and is empty. The link to the menu file will eventually be set to 0.

    Of course these functions run not sequentially in the order specified.

    Is there a way I can force the order or do the PrepareMenuItemInsert()
    function of wat up to what getLastRecordId() wrote the key value in the
    textInputControl?

    Scott

    I well enough to use SQL Server and ColdFusion to manage my data back-end and treatment, but the methodology is basically the same.  The methodology I use is as follows.

    Since Flex: Launch the call to write the data to the database (you have it already).  In Flex, make sure that the call to write the data expects a return value (string, int or a table) of the call.  You have too much already, but it is associated with the GetLastID() call.  These data must be returned from the call to the insert.  After you receive this value then you call the following sequence in the chain of events.  I gave examples of how make that call in Flex in the previous post.

    In the back-end processing: you receive the values from Flex to add to the database, I call them ValInt_1 and Val_Str_2 in the example below.  Place a lock on the database to ensure that only one instance of your application can write to the database at a given time.  Insert the data into the database. Get the value of the new PK of the database and place it in a variable. Release the lock that commit data in the database.  Return the variable.  In the CF, this is how I would do...

    INSERT INTO MyTable (ValInt_1, ValStr_2)

    VALUES (,

    )

    SELECT Max (DataCnt) as MyMax

    FROM MyTable

    Bottom line is writing data and return of the new PK is a flex appeal, a call that expects a value returned from your backend processing.  It's the return of the call to the database where you manage your sequence of events.  Do not forget that a call to any object or function in Flex seems to trigger its own thread, so the timing is not sequential at that time.  So, for me at least, the trick is to sequence the calls to other events and if the calendar is dependent on an event called the following sequence must then be moved to this call.  I.E. If the point C of the sequence cannot be run until it has and B are both done I followed this method:

    private function Set_A (): void {}

    DoStuff_for_A;

    Call_B (PassNeddedVars):

    }

    private Set_B(YourPassedVars:YourTypeAsNeeded):void {} function

    DoStuffFor_B (YourPassedVars);

    Call_C (PassNeededVarsForC);

    }

    private Set_C(YourPassedVars:YourTypeAsNeeded):void {} function

    DoStuffFor_C (YourPassedVars);

    }

    I know it's pretty generic, but sometimes it's easier...

    Have an ordinary day...

    KomputerMan ~ |  :-)

  • Systematically, does not open, gives the error: "C:\Program Files (x86)\Mozilla\firefox.exe Windows cannot access the specified device, path or file.» You can not

    Installed FF 16, 17, 18. Does not open in the normal administrator account, or with "Run as Administrator" but will be in SafeMode to W7. Changed the permissions (normal connection had to do in Mode without failure of W7, would not allow (connected as an administrator) can not delete the files from Mozilla in normal connection.) On rare occasions, with a fresh install, I could get it to open once, then not again. Searched the reg any mention of Mozilla or FF and cleaned. Tried FF safe mode, no luck. Check permissions after appropriators and multiplication of the rights of full ownership of all the files of FF, several reboots, no luck. Chrome, IE and SeaMonkey work very well. Using a fairly new installation of W7 Professional 64 bit on a Dell Optiplex 990 i7, 16 GB of ram. Had the same problem with another user on the same box. No problem on other computers without other problems in program.

    Finally have it running. Seems that the enterprise version of McAfee is blocking the installation of the program. McAfee uninstalled, reinstalled Firefox, installed McAfee and now, it's good to go.

  • Ultiboard files does not open in the box tool

    MS began to open UB files in Ver13 for some reason, I went and removed my 11-13 versions.

    Now they will not open in the box tool MS at all.

    I can open them directly from UB14 and then loading the file of design project...

    How can I fix?

    OK, I've corrected this myself.  Win10 has a 'useful' feature that resets your associations to file something, they think you will like better (to them) without your permission.  In this case it was probably changed to ver13, then a stranger after that I removed ver13.

    Don't know if that's what caused it this time, but I just had to go together as the association of file back to the correct version of ultiboard.

  • Receive error message when you open Outlook; the path specified for the file G:\outlook...pst is not valid.

    I recently exported my outlook to a pst file and saved on my external hard drive.  Since then I get this message when I open Outlook "the path specified for the file G:\outlook...pst is not valid.  How to stop?

    NEVER use the. Functions of export/import PST in Outlook.  They are broken, have been for some time, data loss and often corrupt Outlook profile in use. To perform a backup, just close Outlook and make a COPY of the. PST file.  Looks like (and I guess here) your external HD is G:\. This being the case, that. PST file is probably still attached to Outlook and Outlook can't find it.  With Outlook open, see the supplement files pane. PST file, right-click, and then click "close".  You may need to have the hard drive external and exported. File PST attached and available for work.  If this does not work, you have damaged your profile and will need to make a new one:

    How to create and configure an e-mail profile in Outlook 2007 and in Outlook 2003

    HAL
    --
    HAL Hostetler, TCE
    Engineer senior/UPDATED--MS MVP-Print/Imaging - WA7BGX
    www.kvoa.com - KVOA television, Tucson, AZ.
    Live Hot Licks - www.badnewsbluesband.com

  • ENcypted file does not open and the key file is lost.

    Hello

    Does not open my encrypted file and the key is lost.  I did it in windows 7 and my system crashed.  I then restoed operating system, then my encrypted file does not open and the key file is on the same partition and also, he was gone.  It of a personal record and is very important and punch.  I tried to take possession of the file and that did not work I was wondering if there is a tool or method which can decrypt the file.  I know that their around the key file, or if there is a way to get the certificate... Please help.  Thank you for your help and answers.

    If your certificate and key are lost or damaged and you do not have a backup, you will not be able to use the files that you have encrypted.

    http://Windows.Microsoft.com/en-us/Windows7/what-to-do-if-you-lose-your-file-encryption-key
    "What to do if you lose your file encryption key.

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-open-an-encrypted-file-if-I-am-denied-access
    "How to open an encrypted file if I am seen refuse access?"

    Cordially,

  • Photoshop does not open all the files on my Imac it will open work and recent files very well but will not save. I have the latest version. What is "cleanmymac3" that prevents the loading of files?

    Photoshop does not open all the files on my Imac it will open work and recent files very well but will not save. I have the latest version. What is "cleanmymac3" that prevents the loading of files?

    I must add that when I try and open a file, it freezes and I have to force photoshop completely.

    Try resetting your Photoshop preferences.

  • The button file opens in the saving location, but does not open in the new location.

    I created a simple button that shows an error messeage: "error opening"url"when I test the movie, but play and opens in the browser after the publication. However, it will not open in the browser in a different location. I pasted the html code in a web page, but it does not work it or will open in the browser in a location of differnet from where it was originally published and recorded. Why is this?

    You have not provided anything whatsoever for anyone to check, except for the code of integration that you posted earlier.

  • my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    You may have installed one or more variants of the malware "VSearch' ad-injection. Please back up all data, and then take the steps below to disable it.

    Do not use any type of product, "anti-virus" or "anti-malware" on a Mac. It is never necessary for her, and relying on it for protection makes you more vulnerable to attacks, not less.

    Malware is constantly evolving to work around defenses against it. This procedure works now, I know. It will not work in the future. Anyone finding this comment a couple of days or more after it was published should look for a more recent discussion, or start a new one.

    Step 1

    VSearch malware tries to hide by varying names of the files it installs. It regenerates itself also if you try to remove it when it is run. To remove it, you must first start in safe mode temporarily disable the malware.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for other instructions.

    Step 2

    When running in safe mode, load the web page and then triple - click on the line below to select. Copy the text to the Clipboard by pressing Control-C key combination:

    /Library/LaunchDaemons

    In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

    A folder named "LaunchDaemons" can open. If this is the case, press the combination of keys command-2 to select the display of the list, if it is not already selected.

    There should be a column in the update Finder window. Click this title two times to sort the content by date with the most recent at the top. Please don't skip this step. Files that belong to an instance of VSearch will have the same date of change for a few minutes, then they will be grouped together when you sort the folder this way, which makes them easy to identify.

    Step 3

    In the LaunchDaemons folder, there may be one or more files with the name of this form:

    com Apple.something.plist

    When something is a random string, without the letters, different in each case.

    Note that the name consists of four words separated by dots. Typical examples are:

    com Apple.builins.plist

    com Apple.cereng.plist

    com Apple.nysgar.plist

    There may be one or more items with a name of the form:

    com.something.plist

    Yet once something is a random string, without meaning - not necessarily the same as that which appears in one of the other file names.

    These names consist of three words separated by dots. Typical examples are:

    com.semifasciaUpd.plist

    com.ubuiling.plist

    Sometimes there are items (usually not more than one) with the name of this form:

    com.something .net - preferences.plist

    This name consists of four words (the third hyphen) separated by periods. Typical example:

    com.jangly .net - preferences.plist

    Drag all items in the basket. You may be prompted for administrator login password.

    Restart the computer and empty the trash.

    Examples of legitimate files located in the same folder:

    com.apple.FinalCutServer.fcsvr_ldsd.plist

    com Apple.Installer.osmessagetracing.plist

    com Apple.Qmaster.qmasterd.plist

    com Apple.aelwriter.plist

    com Apple.SERVERD.plist

    com Tether.plist

    The first three are clearly not VSearch files because the names do not match the above models. The last three are not easy to distinguish by the name alone, but the modification date will be earlier than the date at which VSearch has been installed, perhaps several years. None of these files will be present in most installations of Mac OS X.

    Do not delete the folder 'LaunchDaemons' or anything else inside, unless you know you have another type of unwanted software and more VSearch. The file is a normal part of Mac OS X. The "demon" refers to a program that starts automatically. This is not inherently bad, but the mechanism is sometimes exploited by hackers for malicious software.

    If you are not sure whether a file is part of the malware, order the contents of the folder by date modified I wrote in step 2, no name. Malicious files will be grouped together. There could be more than one such group, if you attacked more than once. A file dated far in the past is not part of the malware. A folder in date dated Middle an obviously malicious cluster is almost certainly too malicious.

    If the files come back after you remove the, they are replaced by others with similar names, then either you didn't start in safe mode or you do not have all the. Return to step 1 and try again.

    Step 4

    Reset the home page in each of your browsers, if it has been modified. In Safari, first load the desired home page, then select

    ▹ Safari preferences... ▹ General

    and click on

    Set on the current Page

    If you use Firefox or Chrome web browser, remove the extensions or add-ons that you don't know that you need. When in doubt, remove all of them.

    The malware is now permanently inactivated, as long as you reinstall it never. A few small files will be left behind, but they have no effect, and trying to find all them is more trouble that it's worth.

    Step 5

    The malware lets the web proxy discovery in the network settings. If you know that the setting was already enabled for a reason, skip this step. Otherwise, you should undo the change.

    Open the network pane in system preferences. If there is a padlock icon in the lower left corner of the window, click it and authenticate to unlock the settings. Click the Advanced button, and then select Proxies in the sheet that drops down. Uncheck that Auto Discovery Proxy if it is checked. Click OK, and then apply.

    Step 6

    This step is optional. Open the users and groups in the system preferences and click on the lock icon to unlock the settings. In the list of users, there may be some with random names that have been added by the malware. You can remove these users. If you are not sure whether a user is legitimate, do not delete it.

  • Firefox does not open after the update. Cannot open the profile technical, even when you use the directory in cmd line path

    I'm using Firefox on a Windows 7 computer. Firefox does not open after the last update. I read the help articles and it seems that I need to create a new profile because my settings were probably corrupted. I'm unable to open the profile technical, even when you use the directory in cmd line path. I tried the following commands in the command line:

    Firefox Pei
    "C:\Program Files (x 86) \Mozilla" PEI

    Nothing happens with every order.

    I am also running Norton Internet Security. I read a help of virtual navigation features Re article that can cause a problem. The article says to check the setting of virtualization in the internet security software and to clear the virtual cache. I went through all the menus of settings in Norton Internet Security version 21.6.0.32 and I don't see anything that looked like in "virtualization" settings, so I guess that does not apply to me. "

    If you have any ideas, I had appreaciate that your expertise!

    Hello arcandl, at the launch of the firefox is not after you double-click the shortcut, it is sometimes also a sign of active malware on a system.
    you might want to try running a scan with some various other security like the free version of malwarebytes and adwcleaner tools that are specialized to remove the adware and browser hijackers.

    Fix Firefox problems caused by malicious software

  • Display problems are driving me crazy - when I click on a program already open in the task bar it does not open on the other open pages

    This happens if I click on a file or a file that is already open. The opened file will blink in the taskbar, but does not open on the top of any page is currently on the screen. When I click on previously open programs bring them on top as usual. Open another windows word file in the start menu did not appear at the top of the page currently open also. Any ideas on how to solve this problem?

    This happened after one of the three things - the upgrade of windows components, the advanced upgrade system of care or following a computer crash that preceded the front mentioned updates but I'm not sure that one.
    Thanks in advance

    Hello

    I suggest you to check the question in the new user account.

    How to create and configure user accounts in Windows XP

    http://support.Microsoft.com/kb/279783

  • whenever I click on a program, that it does not open and the 'open with' screen appears

    whenever I click on a program, that it does not open and the 'open with' screen appears

    Hello

    Use above message for intense and thorough check for malware.

    To restore the ability to run any .exe programs.

    1 make a Restore Point so that you can come back if necessary back although probably not required.

    How to create a Vista System Restore Point
    http://www.Vistax64.com/tutorials/76332-system-restore-point-create.html

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
    2. copy BETWEEN these lines and paste it into Notepad - save as exefileFix.reg - then right
    Click on it and FUSION - REBOOT

    DO NOT COPY THE LINES
    -----------------------------------------------------------------

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\. [EXE]
    @= "exefile".
    "Content Type"="application/x-msdownload".

    [HKEY_CLASSES_ROOT\. EXE\PersistentHandler]
    @= "{098f2470-bae0-11cd-b579-08002b30bfeb}".

    [HKEY_CLASSES_ROOT\exefile]
    @= "Application".
    "EditFlags" = hex: 38, 07, 00, 00
    "FriendlyTypeName" = hex (2): 40, 00, 25, 00, 53, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 d, 00, 52,------.
    00, 6f, 00, 6f, 00, 74, 00, 25, 00, 5 c, 00, 53, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 d, 00, 33, 00,------.
    32,00, 5 c, 00, 73, 00, 68, 00, 65, 00, 6 c, 00, 6 c, 00, 33, 00, 32, 00, 2nd, 00, 64, 00, 6 c, 00, 6 c,
    00, 2 c, 00, 2d, 00, 31, 00, 30, 00, 00, 31, 35, 00, 36, 00, 00, 00

    [HKEY_CLASSES_ROOT\exefile\DefaultIcon]
    @="%1"

    [HKEY_CLASSES_ROOT\exefile\shell]

    [HKEY_CLASSES_ROOT\exefile\shell\open]
    "EditFlags" = hex: 00, 00, 00, 00

    [HKEY_CLASSES_ROOT\exefile\shell\open\command]
    @="\"%1\" %*"
    ""IsolatedCommand"="\"%1\" %. "

    [HKEY_CLASSES_ROOT\exefile\shell\runas]

    [HKEY_CLASSES_ROOT\exefile\shell\runas\command]
    @="\"%1\" %*"
    ""IsolatedCommand"="\"%1\" %. "

    [HKEY_CLASSES_ROOT\exefile\shellex]

    [HKEY_CLASSES_ROOT\exefile\shellex\DropHandler]
    @= "{86C86720-42A0-1069-A2E8-08002B30309D}".

    [- HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\UserChoice]

    --------------------------------------------------------------
    DO NOT COPY THE LINES

    If necessary:

    Check the fix of exe here
    http://www.Winhelponline.com/articles/105/1/file-association-fixes-for-Windows-Vista.html

    Also check this one if it applies
    http://www.Winhelponline.com/articles/165/1/restore-the-exe-file-association-in-Windows-Vista-after-incorrectly-associating-it-with-another-application.html

    How to set default Associations for a program under Vista
    http://www.Vistax64.com/tutorials/83196-default-programs-program-default-associations.html

    I hope this helps.

  • CD drive does not open and the light does not work

    original title: single CD player problem

    The problem with my CD player seems to be unique I can't find an answer, or someone else with the same problem online.

    My computer is custom built, the CD player lasted me 1.5 years no problem, not until one day I realize, it does not open and the light does not work on it, I ordered a new drive and installed that one, still does not work. so, I replaced the SATA cable which connects to the motherboard, still does not.

    When I go to my computer the drive appears but when I right click > eject it says: "year error occurred while ejecting CD drive D".  It also appears in devices such as SCSI CdRom Device Manager but I am not sure if it's actually my CD player.

    I also tried troubleshooting http://support.microsoft.com/gp/cd_dvd_drive_problems and no solution.

    WTFFF ideas? I really hope that its not the motherboard

    There are two cables you need to connect to the drive, one for data and one for power.  You must connect both training at work.  If you only have the data cable is plugged and not cable power which would be a possible cause of the problem that you see.

    "Ryanb1290" wrote in the new message: * e-mail address is removed from the privacy... *

    Sorry, im just of knowledge about computer hardware.  you say that I should try a different agreement or another port to plug in?

    I tried to connect on a couple different SATA ports on the motherboard.

  • Copy-paste/Clipboard bug in Windows 7 if the target is not open before the copy operation

    Copy-paste/Clipboard bug in Windows 7 if the target is not open before the copy operation

     

    Behavior of copy - paste doesn't seem to work properly in Win7.

    I just migrated to a new machine of Windows 7 with new Office 2010 installed where I performed tests on the problem.

    If I copy the text to the Clipboard from an application open MS (for example Excel, but also other programs MS like windows Explorer, internet Explorer, etc.), and then open a fresh word (one instance open) document and paste the text, it appears as an oval-shaped blob image.

    Similarly the same problem when I subsequently open apps package and try to make a hem

    The problem does not arise

    1. If the fresh Word document is already open before doing the copy operation

    2. If another document is already open before doing the copy operation

    3. If the copy on an Excel cell (for example) make it, stick first to Excel, and then open a fresh Word document (single instance) and paste to that

    It is not just Word. Other target applications get the unwanted copy if they are open between the copy and paste.

    This bug is not present in XP.

    Thank you very much.

    OK, it's more clear now. It is Office 2010 which trashes the Clipboard when the first instance of a program Office 2010 is open (well, I tried only Excel and Word).

    Scenario 1: Open Excel, write a few essays in a cell, copier, copy to the Clipboard, open the new Word document, paste that and the oval blob error occurs

    Scenario 2: Open Word, write a few characters test, copier, copy to the Clipboard, open new worksheet Excel, paste that and the oval blob error occurs

    Scenario 3: Open Word, write a few test characters, copy to the Clipboard, close the word document, open it again, dough one and the oval blob error occurs

    Scenario 4: Open Word, write a few characters test, copy to the Clipboard, open another document, paste and no error occurs

    Scenario 5: With Excel and Word open, first cut an and stick to the others - works fine

    Conclusion: the windows clipboard is always corrupted when the first instance of an Office application is opened.

    Kind regards

    Andrew

  • Thumbnails not opens in the Preview Panel

    Some files are not open in the Preview Panel.  Is it a question of size of the file?  And if so how can I change?

    Hello

    Thanks for the update

    Preferences > thumbnails

    Increase of not to treat the files bigger than '1000' "3000".

    Concerning

    ~ Assani

Maybe you are looking for

  • Impossible to use Intel widi with my Satellite L50-A-11 t

    Hello I have a Satellite L50-A-11 t and I tried to use Intel widi with 8.1 of Windows and does not work, it says that the system is not compatible. With Windows 8 it was ok and it worked very well, but in the apparell for the upgrade it supposed to r

  • Desktop computer freeze

    I also have the first icon of shortcut of corrupt but soon discovered thought regular programs and task bar items did not meet the click of the mouse wireless mouse is very good problem occurs generally if the computer has left for the period of time

  • wmpnetwk.exe and Zune.exe errors

    I got a new motherboard (gigabyte ga-ep45-ud3p) and processor (Quad Core yorkshire 2.833 9550). After installing the drivers and others, I tried windows media running player. I had a pop indicating that media sharing is turned off, I went and activat

  • Cannot sign in Administrator profile

    service user profile service does not have the opening of session User profile cannot be loaded

  • Unknown to router in the Network Infrastructure

    Hello There is a unknown router which is not mine not appearing in the Network Infrastructure. I understand why it show up under available wireless networks. But not the network infrastructure. I have not connected to it, is not my router, and it is