command line in IIS using Server.CreateObject("WScript.Shell") (in asp classic) not working
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 577
- PR merge metrics
- No merged PRs in 30d
Description
I am not sure what I am doing wrong...
```
function make_minify_version(file_name,input_dir,output_dir)
dim command, shell
command = "%comspec% /c html-minifier " & _
" --input-dir """ & input_dir & """ " & _
" --output-dir """ & output_dir & """ " &_
" -o """ & file_name & """"
Set shell = Server.CreateObject("WScript.Shell")
shell.exec command
set shell = nothing
end function
```
which should executes:
```
html-minifier --input-dir "D:\www\static_html\" --output-dir "D:\www\static_html\min\" -o test.html
```
Running the above in cmd I am getting the error:
> **You need to specify where to write the output files with the option --output-dir**
Running
```
whitespace -V
```
I get
>4.0.0
I would really like to save the file as **test.html.min** in the same folder instead of having it in a sub folder with the same name.
Is that possible?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the shown WScript.Shell command and inspect html-minifier's handling of --input-dir, --output-dir, and -o with the quoted Windows paths. Done means the command accepts the paths and either produces test.html.min in the requested folder or clearly establishes whether that output naming is supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100