Batchfile to create backup and rename with timestamp

后端 未结 5 858
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-31 20:35

I have the following network path to copy the file to an archive folder. It copies File 1 from Folder to Archive but I would like to add t

5条回答
  •  花落未央
    2021-01-31 21:20

    Yes, to make it run in the background create a shortcut to the batch file and go into the properties. I'm on a Linux machine ATM but I believe the option you are wanting is in the advanced tab.

    You can also run your batch script through a vbs script like this:

    'HideBat.vbs
    CreateObject("Wscript.Shell").Run "your_batch_file.bat", 0, True
    

    This will execute your batch file with no cmd window shown.

提交回复
热议问题