Solved

bat file

Posted on 2000-05-12
1
359 Views
Last Modified: 2010-04-16
Hello
How can I find the windows dir in a *.bat file(from dos) so I can run a file?
0
Comment
Question by:ILPowerSoft
1 Comment
 
LVL 15

Accepted Solution

by:
simonet earned 30 total points
ID: 2804192
Use the %windir% variable.

Here's an example:

dir %windir%

start %windir%\notepad.exe


if %windir% hsa not been set, then try %winbootdir%. These variables are usually automatically set by Windows at start up.

Yours,

Alex
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question