N
N
Ningaro2018-03-27 23:31:54
bash
Ningaro, 2018-03-27 23:31:54

How, when executing a command in CMD, was the contents of the CD constant substituted in the right place?

There is a special command that opens Chrome with some parameter, this parameter must have the address to the desired html file, which is located in the same directory in which the batch file with the command is launched.

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app=[тут должно быть содержимое константы CD]/index.html

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2018-03-27
@Ningaro

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app="%~dp0/index.html"

R
res2001, 2018-03-28
@res2001

%CD%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question