How to run .bat file in Windows 7?

Page 2 of 2 FirstFirst 12

  1. Posts : 15
    win 7 64
       #11

    A good approach is to create a C:\bin directory and a C:\scripts directory.

    Put all your batch files in C:\scripts
    Put all your binary files (i.e. curl.exe) in your bin folder.

    Add C:\bin and C:\scripts to your path (in advanced settings of computer properties)

    This way you can easily add scripts and binaries (e.g. unixtools, tifftools, putty, md5sums) to you bin folder and any scripts you write can be added to your scripts folder for easy access anywhere without having to worry about paths etc.
      My Computer


  2. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #12

    jaffamuffin said:
    A good approach is to create a C:\bin directory and a C:\scripts directory.

    Put all your batch files in C:\scripts
    Put all your binary files (i.e. curl.exe) in your bin folder.

    Add C:\bin and C:\scripts to your path (in advanced settings of computer properties)

    This way you can easily add scripts and binaries (e.g. unixtools, tifftools, putty, md5sums) to you bin folder and any scripts you write can be added to your scripts folder for easy access anywhere without having to worry about paths etc.
    Bad idea and goes against best practices. You never want anything off the Root of C:. Microsoft even makes the security settings tighter on the root of C: for just that very thing. Create a D: drive and make all the directories you wish is better. -WS
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:06.
Find Us