How to run a Batch file in Win7

March 2, 2010 at 02:13:30
Specs: Microsoft Windows 7, 3 GHz / 4 GB

I need to run a small BAT file on startup. In XP I would write it into a Notebook, save it with a .BAT extenstion and put a shortcut in the Startup folder.

In Win7 when I do that the CMD window opens, the file runs over and over again, but doesn't ever do what it is meant to do.

What I am I missing?

Terry


See More: How to run a Batch file in Win7

Report •


#1
March 2, 2010 at 05:14:01

You can use Bat to Exe converter from: www.f2ko.de

Go to Download section of the web site to download.

Convert your bat to exe and then put a registry entry in

HKCU\Software\Microsoft\Windows\CurrentVersion\Run for your account or

HKLM\Software\Microsoft\Windows\CurrentVersion\Run for all accounts (global)

Regards

SuatCINI


Report •

#2
March 3, 2010 at 12:00:04

Whoops! I had called the File 'subst.bat', so it kept interpreting the instruction as meaning to call the file recursively. It never got to do the line inside which started 'subst x: d:\folder'

Thanks anyway.

Terry


Report •

Related Solutions


Ask Question