Solved

bat file

Posted on 2000-05-12
1
341 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This is about my first experience with programming Arduino.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now