I have created a file that I want run upon startup and placed it in my
C:\Documents and Settings\All Users\Start Menu\Programs\Startup
folder. However, when I click on the ".ini" file, it simply opens in
Notepad. I would like to actually see what happens when I run the
file, but can't figure out how to do that. Any help? - Dave
For example - my Clock.exe program has got an associated "Clock.ini" file
with it.
The contents of my "Clock.ini" file looks like this ...:
[Clock]
Maximized=0
Options=1,0,0,1,0,0
Position=774,18,1007,260
...the above is typical of most [*.ini] files - a section heading enclosed
in square brackets with various sub-values in the format SETTING=value
However, most applications since the launch of Windows'95 have been
encouraged to use the Window's Registry to store applications' settings.
Take a look at the WIN.INI and SYSTEM.INI files in your WINDOWS folder.
These two files are only included for compatibility purposes and are a
relic of Windows 3x and are the forerunner of the Window's registry.
Nowadays the [*.ini] file is more often associated with legacy 16-bit
applications.
==
Cheers, Tim Meddick, Peckham, London. :-)
P.S. Perhaps you were thinking of [*.inf] files which *can* be "Run" and
not [*.ini] files at all? - Just a thought.....
"laredotornado" <laredo...@zipmail.com> wrote in message
news:f6d1fd75-c797-4363...@d7g2000vbv.googlegroups.com...
Thanks for this clarification. Then is the Startup folder only for
holding additional configuration? I thought I read I could actually
place a file in there that would be run. If that is true, what is the
correct way to do that? - Dave
.ini files are not executable. They don't do anything on their own -
they hold configuration information for other programs. Your statement
about "running" the file makes no sense.
What is it you want to do, exactly?
> Thanks for this clarification. Then is the Startup folder only
> for holding additional configuration? I thought I read I could
> actually place a file in there that would be run. If that is
> true, what is the correct way to do that? - Dave
The Startup folder is intended for shortcuts to programs and documents.
If you put a shortcut to a program there, it will run on login. If you
put a shortcut to a document there, it will open in it's default
associated program or editor on login.
If you put an ini file there, it will open up in it's default
associated editor, notepad. Your computer is working as expected and
designed.
What is it you are trying to accomplish?
I want to execute a batch file (.bat) at startup. Where can I place
my .bat file for this to happen or is there something else I need to
configure? - Dave
In general, only executable files (e.g., with the .exe extension) should
be in the Startup folder. Of course, you can also put data files there
(including .ini files, which are data and not executable) if you want
some application to open and display them (which is what you are
experiencing).
If you have entries for an .ini file that you really want applied (not
executed) at startup, enter the .ini data in either [C:\WINDOWS\WIN.INI]
or [C:\WINDOWS\system.ini]. Those two are automatically applied at
startup. However, those two generally apply only to 16-bit
applications, not the more modern 32-bit and 64-bit applications.
If what you really want to do is setup environment variables (which were
setup via .ini files in Windows 95 and 98) for 32-bit and 64-bit
applications, the process is different with Windows XP. Right-click on
My Computer. On the pull-down context menu, select Properties. On the
System Properties window, select the Advanced tab. On the Advanced tab,
select the Environment Variables button. "User variables for User"
apply only to the current user on a multi-user PC. "System variables"
apply to all users.
--
David E. Ross
<http://www.rossde.com/>
On occasion, I might filter and ignore all newsgroup messages
posted through GoogleGroups via Google's G2/1.0 user agent
because of spam from that source.
Yes - you *can* just place any batch file into the "Startup" folder and it
will indeed be run at startup.
A batch-file (*.bat) consists of an "Ansi" (simple, non-unicode text file
with the [*.bat] extension), with a list of consecutive commands that would
be accepted if you typed them at a Command Prompt (cmd.exe) window.
Batch files usually begin with the line :
@echo off
...this first line switches off command "echoing" - i.e.; each command will
not be shown as executed - only any output resulting from each command. It
just makes any output from the batch-file more clear.
The batch-file will then relentlessly process each command - line by line -
until it comes to the end.
For more information, look-up "batch files" in the Windows XP Help and
Support Center...
==
Cheers, Tim Meddick, Peckham, London. :-)
"laredotornado" <laredo...@zipmail.com> wrote in message
news:ab1fa5d8-71bc-4357...@e4g2000vbg.googlegroups.com...
As already mentioned, what you want is a batch file. Where you can write
DOS commands. For example, you can have XCOPY run and make a backup of a
certain directory every time you startup your computer.
Simply toss the batch file in the startup folder of the all users profile.
> I want to execute a batch file (.bat) at startup. Where can I
> place my .bat file for this to happen or is there something else I
> need to configure?
Then, what was all that about an ini file? What does that have to do
with it?
If you want to run a batch file upon login, put a shortcut to the batch
file in the startup folder. The batch file itself can live anywhere on
the computer. Simple as that. No ini files required. Nothing else needs
to be configured.
I'm making several assumptions, due to the lack of details from you. It
really behooves you to provide a complete description and pertinent
details of your problem when you ask for technical assistance. Please
check out this article:
Ok, so placing the batch script in the startup folder seems to be the
consensus. Now here's the next hurdle. I want to run a java process
(a Selenium server) and in MS-DOS, there is no such thing as a
background process (unless I'm wrong). So the script doesn't "end",
as such. I'm noticing restarting results in a constant state of
"Windows Starting" without actually getting to the regular Windows
screen.
What is the right way to launch the Java process without permanently
stalling my system?
- Dave
> I'm noticing restarting results in a constant state of
> "Windows Starting" without actually getting to the regular Windows
> screen.
I don't understand what you're saying here.
You can usually kill a running batch file by hitting Ctrl-C. There are
also command line process-killing utilities (Sysinternals PSKILL, for
one.)
> What is the right way to launch the Java process without
> permanently stalling my system?
Don't you need to start the java launcher with the java program as a
command line argument? If you can do that from the command line, then
you can put that command line in a batch file.
I don't think this is really a Windows question or issue. Wouldn't you
be better off asking in a java group, of which there are many?
The command-line interface provided in both DOS and NT-based Windows is
certainly NOT MS-DOS!!
And as such it can start what you call a "background process" - this is
explicitly the reason that the "START" command was created for.
The "start" command "starts" Window's processes with command-line options :
START [/MIN] [/MAX] [/WAIT] [command/program] [parameters]
Use the "start" command within a batch-file to start a Windows-program to
ensure that the batch-file continues it's execution until it terminates.
==
Cheers, Tim Meddick, Peckham, London. :-)
"laredotornado" <laredo...@zipmail.com> wrote in message
news:20fa9777-5d36-43b5...@l22g2000vbp.googlegroups.com...