Friday, September 17, 2004

Command Line Stuff 1

Here's a simple Batch file you can create. It will allow you to run excel from the command line if you want. Just type the filename after the command.

Filename:xl.bat
@echo off

rem execute excel
start "No Title" "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" %*
The folder OFFICE11 may need to be changed to whatever version you have(or it could be in just plain OFFICE). The important point is to find the path to EXCEL.EXE. The "No Title" is necessary because start has that parameter in the first position, so that if what you call is a command window it can set it's title. Since excel requires no command window, this title will have no effect.

Obviously, you could do word(WINWORD.EXE), access(MSACCESS.EXE), or others.

0 Comments:

Post a Comment

<< Home