batch script and SharePoint backup smigrate

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fluff
    New Member
    • Aug 2007
    • 20

    #1

    batch script and SharePoint backup smigrate

    Hello.

    I'm sorry if this is the wrong forum, but I haven't been able to get an answer at the microsoft/sharepoint forum.

    I've been using this on the command prompt to make backups of sharepoint:
    Code:
    smigrate -w http://siteIWantToBackUp/ -f x:\LocationToSaveBk\fileName.fwp
    I wanted a batch file and a schedule to run everyday, but I wanted the file name to be a variable so that it would be a different name everytime it was backed up. I wanted the file name to be the date of the backup.

    I don't know anything about batch file programming, but someone gave me this code:
    Code:
    set fname=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
    fname would be "Thr" on thursday.

    So I tried to use this
    Code:
    set fname=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
    smigrate -w http://siteIWantToBackUp/ -f x:\LocationToSaveBk\%fname%.fwp
    and it doesn't work.

    Does anyone have any suggestions?

    Thank you for your time and help.
  • harshadd
    New Member
    • Dec 2007
    • 180

    #2
    search my writeup on this forum, I have allready given a batch script to generate a dynamic name for files to be FTPed on daily basis.


    Goodluck..
    HarshadD

    Comment

    • scooby dooby
      New Member
      • Jul 2008
      • 10

      #3
      Originally posted by harshadd
      search my writeup on this forum, I have allready given a batch script to generate a dynamic name for files to be FTPed on daily basis.


      Goodluck..
      HarshadD
      Hi Harshad,
      I need a help .
      I have the requirement of logging out a user from windows.Also it should popup an alert msg befor elogging off. I thought of doing it using batch file,1st it should invoke a cmd prompt then it has to call a logoff file and enter ,.
      Whta do you think any idea to solve this?

      Comment

      • Nepomuk
        Recognized Expert Specialist
        • Aug 2007
        • 3111

        #4
        Originally posted by scooby dooby
        Hi Harshad,
        I need a help .
        I have the requirement of logging out a user from windows.Also it should popup an alert msg befor elogging off. I thought of doing it using batch file,1st it should invoke a cmd prompt then it has to call a logoff file and enter ,.
        Whta do you think any idea to solve this?
        I'll just borrow this text from NeoPa:
        You have asked your question in another member's thread. This is called thread hijacking and is not allowed on this site. There are various reasons for this, the principal of which is that it typically diverts the flow of the thread away from his needs and into yours. Another is that it will tend to mean that your new question is not seen as such, and may get overlooked by many of our experts (You appreciate that they're not looking for answered questions).
        Please post your questions in their own threads in future (See How to Ask a Question).
        You already opened your own thread here, so please stick to that one.

        Greetings,
        Nepomuk

        Comment

        • harshadd
          New Member
          • Dec 2007
          • 180

          #5
          please post ur new question in new thread and let me know the theread in personal message. I will answer you there.

          rgds
          Harshad

          Comment

          Working...