1.

Solve : opening a window?

Answer»

Please tell me what are the commands for batch file:

1) for opening a PARTICULAR WORD document?

2) for opening web browser?
-------

for opening a word document called "email.doc",

i MADE ( at the c:\windows prompt ) the batch COMMAND as

start/min C:\my documents\email.doc

and

start wordpad email.doc

but it showed "wrong path".

---------

next topic:

I am facing problem in understanding the path.

where to create the batch file?

at c: prompt?

or at c:\windows prompt?

or at c:\windows\desktop prompt?

because i created a notepad file named "hello" and savede it at desktop.

then i created this batch file at c:\windows prompt.

start notepad hello.txt

it opened.

but when i typed the same at c: prompt it did not open. The path is a list of directories that the OS will search if your program cannot be found in the current directory.

Do a find/search on your wordpad program and use that directory as part of the START command.

EX: start "c:\program files\windows nt\accessories\wordpad.exe c:\my documents\email.doc"

The batch file can be in any directory provided the directory is on the path list. To see your path enter path at any command prompt. If you have duplicate file names ACROSS directories, the OS will use the first one. When in doubt, it never hurts to enter a path to the file.

Hope this helps.



Discussion

No Comment Found