Reputation: 53850
I need to create a simple utility to make my life a little easier. It creates a folder that gets name generated from the next Monday date with DateJS library. I am obviously to use this utility locally in Windows. What are the ways to include this DateJS library to my utility JS file?
Upvotes: 2
Views: 753
Reputation: 144912
I assume you're using WSH – in other words, putting some script in a .js
file and running it. Your options:
eval()
it. I would not recommend this method.wsf
format, a simple XML format which allows you to reference external scripts. This is probably your best route.myscript.wsf:
<job id="myscript">
<script language="JScript" src="date.js"/>
<script language="JScript">
// ...
</script>
</job>
Upvotes: 6
Reputation: 46745
Couple of ways to do this:
If you want more specific answers, you should add more information to your question.
Upvotes: -2