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
How to convert a windows WIM file to a ISO file
I am trying to find a way to take a WIM file from WDS, and convert it to an ISO image, so that I can use the ISO to install into VMware machines. I've read the many posts on how to convert a discover.wim to an ISO, but this doesn't work for what I'm trying to do. Any suggestions on how to get...
General Discussion
Windows can't find the file when trying to run a .bat file
When I double click a .bat file windows says it can't find it, but if I do a direct access to the file then it runs it without any problem. Any idea? Tanks!
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
Windows file contents to text file
i need a list of everything on my hard drive i can access in a text file without manually pounding the folder/sub folder and contents names into notepad is there anyway this can be achieved?
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 11:12.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App