سؤال

In my working Environment, I need to access multiple VSS database. For Each database , I have different user ID / Password Moreover , I need to download some data on fixed date ( each wednesday morning) I would like to automate this process. I found VSS command to download the data from VSS however, I could not find the command to login by specifying srcsafe.ini path of VSS How to switch VSS accounts in single batch file ?

هل كانت مفيدة؟

المحلول

Set the VSS environment variables as needed with something like this in your bat file (assuming user has proper VSS permissions).

SET SSDIR=\\PutComputerNameHere\FolderNameHere
SET SSUSER=%UserName%
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top