4 ms·
Doesn't Windows have a built-in JavaScript runtime, the Windows Script Host? Sure, it may not be a very pretty language either, but it's still relatively sane c
by pwdisswordfish 10y ago
Doesn't Windows have a built-in JavaScript runtime, the Windows Script Host? Sure, it may not be a very pretty language either, but it's still relatively sane compared to batch scripts. (I can't speak of PowerShell.)
- nurettin 10y agoI do like activex/js and wsh, but Wsh might require permissions to modify the filesystem, so installation/setup step can be harder than just copying and running a statically compiled executable.
- pwdisswordfish 10y agoLast time I checked, doing new ActiveXObject("Scripting.FileSystemObject") did not require any extra 'permissions'.
- nurettin 10y agoI remembered the problem, it was the execution of unsigned/remotely signed powershell scripts where you have to open powershell and give a permission[1] by typing something like: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned [1] https://technet.microsoft.com/en-us/library/bb613481.aspx https://technet.microsoft.com/en-us/library/bb613481.aspx