You can try this code to create a batch file: if not "minimized""" goto :minimized set minimizedtrue echo off. cd "C:app path".to run node.js in background. Create a batch file containing following: Node 1 pause. And associate this with . js. 1 will contain the fullpath of .js file launched. Note: Maybe you will need to surround 1 with double quotes "". <Это сообщение удалено.> Re: [nodejs] running a batch file from node.js.On Jul 25, 2013, at 00:34, Enjamoori Srikanth wrote: > > Im having .bat file which just does appending date and time to text file > I have to call that bat file in .js file and run from node.js. The node.js client deploys a batch job with a preparation task (explained in detail later) and a set of tasks depending on the number of containers in the storage account.resourceFiles: Array of objects that provide details of files needed to be downloaded for this task to run. Node.js includes fs module to access physical file system. The fs module is responsible for all the asynchronous or synchronous file I/O operations.Now, run the above example and see the result as shown below.