how to run .bat file for the files in the different location

zzz
2014-03-14
2014-03-14
  • zzz

    zzz - 2014-03-14

    I am having a .bat file under c:\projects\; but the file included in that .bat file is under different folder c:\projects\Graf\MS\NON\; how can I run this .bat file for the file in the different location? Thanks a lot.

     
  • Loreia2

    Loreia2 - 2014-03-14

    Hi zzz,

    specifying full path to file used should do the trick.

    Can you be more specific? Share here part of the code that calls the file. It is not clear what are you trying to do with it, run it, copy it, delete it ...

    BR,
    Loreia

     
  • zzz

    zzz - 2014-03-14

    simple a.bat file:
    call nm run1.txt run1.res
    which is located in c:\projects\;

    But input file run1.txt specified in that a.bat file is located under c:\data\nm\graf\md;

    how to run a.bat in notepad++ with one click?
    Thanks a lot.

     
  • Loreia2

    Loreia2 - 2014-03-14

    Hi zzz,

    just use full path for the file that is not in the directory where a.bat is located:

    ~~~~~~~~~~~~~~~~~~~~~~~~~
    call nm c:\data\nm\graf\md\run1.txt run1.res
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    If you wish to run it directly from Notepad++, press F5, select a.bat, and run it.

    BR,
    Loreia

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks