Forum Discussion

mvandenberg2's avatar
mvandenberg2
Occasional Contributor
11 years ago

Jscript - Execute DOS command

Hi, I'm trying to execute a dos command in Jscript, but I keep getting "The system cannot find the file specified" I'm sure it has something to do with qoutes. I've tried every combination I...
  • karkadil's avatar
    11 years ago
    var command = "cmd /c dir /b c:\ProgramData\testfolder1\testfolder2 >D:\Automation\Data\testdata\testfile.csv"