How to alter powershell command line for mongodb export into a Powershell script (for scheduled task purposes) -


I'm not a code, but rather trying to help my development work, so that I do myself a simple job With the help of a Windows scheduled task to export the components of our Mengodeb through one powerhelf, and some litigation and error (as well as a little help from troubleshooting of friends), I write some power-shield command lines Right in I am able to export the relevant mosaic archives that were manually executed inside the Powershield:

  cd c: \ mongobinlocation. \ Mongoexport - db db --collection Collection 1 --jsonArray --out "\\ server \ archivelocation \ collection1.json". \ Mongoexport - DB DB - Collection Collection 2 - JasonRay - Out "\\ server \ archivelocation \ collection2.json". \ Mongoexport - db db --collection Collection 3 - Jason Array - Out "\\ server \ archivelocation \ collection3.json"   

However, I then scheduled a script to run the script in PowerShell Setting up the task to set up (using instructions here) and I realized that the power set command lines I have installed are not the same as PowerShell scripts that can be run in a fixed task. I am looking for the loan, which I can modify to incorporate the command lines given above and I had no luck - whatever I see looks quite different from my small 'command lines Is there any way to wrap the above commands in basic things or do I have to start with scratch and learn how to write parcel script?

Thanks for any and all help, and I appreciate your time!

I have not worked at all with scheduled tasks. I have to learn them. Since I do not know anything about scheduling tasks, I have kept my scheduling in my PowerShell script.

  while ($ true) has been replaced by # # Asho-to-Loop ... # Your script start-sleep (60 * 60 * 24) #m "Timeout / T Lt; Seconds "; }   

If you throw it on the server that does not restart you have a handy scheduled task. If you are actually looking to check workflow with PowerShell.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -