Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to run .bat file in Windows 7?

05 Sep 2013   #11
jaffamuffin

win 7 64
 
 

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 System SpecsSystem Spec
.
09 Sep 2013   #12
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by jaffamuffin View Post
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 System SpecsSystem Spec
Reply

 How to run .bat file in Windows 7?




Thread Tools




Similar help and support threads
Thread Forum
Windows File Explorer shows wrong time for updated file
In File Explorer - navigate to a folder in Documents, a recently saved file by Sketchup application shows date = 9/28/17 6:48 PM do a search for the same file, date shows = 9/29/17 1:32 PM << this one is correct. Open either file and they are the same content. This happened last night...
General Discussion
Contradictory file dates in Windows 7 File Explorer when I use search
Contradictory file dates in Windows 7 File Explorer when I use "Search My Documents" with *.docx I modified a Word file earlier today. When I view the file in File Explorer the correct file date/time is displayed, however when I search for Word files by entering *.docx in the "Search My...
General Discussion
Copy file address after doing a file search in windows explorer
Hi All I have a rather large file system with lots of folders & subfolders. When I want to save previously on Xp operating system I'd search in explorer open the folder I want then copy the address (e.g c:\customer records\client name\job address). In windows 7, when I copy the folder address i...
General Discussion
Perl file (.pl) file with arguments as windows service
I am running Windows 7 32-bit. I have a perl script which i want to start everytime computer starts. Setting it as service will be a good option as i can start and restart the service from command line. In windows XP I was using srvany.exe but that is not a good solution. Is there any way I can...
General Discussion
Need a software to open .bkf file(windows XP backup file)
i hav recently reinstalled windows 7 from windows xp ..... and i hav created my games backup file ......... but nw i m having a trouble to open it in windows 7...... plz help me
Backup and Restore


Our Sites

Site Links

About Us

Find 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 03:33.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App