Workgroup question

binarysoulbinarysoul Member Posts: 993
We have a couple of servers (W2k3) as part of a Workgroup. I created a batch file to copy a folder from Server A to Server B on a weekly basis. When I run the script, it tells me destination is invalid. I created the folder on destination server and made it sharebale an the permission is to "change". From the source server I can browse to the destination folder though.

Any help?

On my way to 1000's post :)

Comments

  • MishraMishra Member Posts: 2,468 ■■■■□□□□□□
    Can you post what command you are running from within your script?
    My blog http://www.calegp.com

    You may learn something!
  • binarysoulbinarysoul Member Posts: 993
    It's a good thing you asked for the script! I think I lied when I said no spelling error icon_twisted.gif
    The script runs now. P.S. read my signature!

    I want 10 seconds of wait between two tasks. How can I do this:

    Start ServiceA
    Wait 10 seconds
    Start ServiceB
  • NetAdmin2436NetAdmin2436 Member Posts: 1,076
    binarysoul wrote:
    It's a good thing you asked for the script! I think I lied when I said no spelling error icon_twisted.gif
    The script runs now. P.S. read my signature!

    I want 10 seconds of wait between two tasks. How can I do this:

    Start ServiceA
    Wait 10 seconds
    Start ServiceB

    Well, I'm certainly no programmer....but try the following line of code in where you want it to pause.

    sleep 10



    *So in essence this simple batch file would say "Hi" .......then wait 10 seconds.....then say "goodbye" and close

    echo "hi"

    sleep 10

    echo "goodbye"

    end
    WIP: CCENT/CCNA (.....probably)
  • binarysoulbinarysoul Member Posts: 993
    I actually used sleep. It told me it couldn't recognize it. It's windows 2003.
  • NetAdmin2436NetAdmin2436 Member Posts: 1,076
    Yeah, looks like your right. It worked on XP, but not on my 2003 server.

    Ah ha! Check this out....Download and install the resource tool kit for 2003.
    http://malektips.com/xp_dos_0002.html
    WIP: CCENT/CCNA (.....probably)
  • whistlerwhistler Member Posts: 108
    binarysoul wrote:
    Wait 10 seconds

    ping 127.0.0.1 -n 10 > /devnull is a simple way.

    You might need to tweak the count a little.
  • sprkymrksprkymrk Member Posts: 4,884 ■■■□□□□□□□
    Just do as suggested by NetAdmin and download the resourse kit. You dont even have to install it on the server, you can install it on any computer and just copy the "sleep.exe" to the Windows directory on the server.

    Not knocking the nifty little ping trick, that's a pretty clever work around.
    All things are possible, only believe.
  • binarysoulbinarysoul Member Posts: 993
    sprkymrk wrote:
    You dont even have to install it on the server, you can install it on any computer and just copy the "sleep.exe" to the Windows directory on the server.

    That's clever too. I will try that :)
Sign In or Register to comment.