Workgroup question
binarysoul
Member Posts: 993
in Off-Topic
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
Any help?
On my way to 1000's post
Comments
-
Mishra Member Posts: 2,468 ■■■■□□□□□□Can you post what command you are running from within your script?
-
binarysoul Member Posts: 993It's a good thing you asked for the script! I think I lied when I said no spelling error
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 -
NetAdmin2436 Member Posts: 1,076binarysoul wrote:It's a good thing you asked for the script! I think I lied when I said no spelling error
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"
endWIP: CCENT/CCNA (.....probably) -
binarysoul Member Posts: 993I actually used sleep. It told me it couldn't recognize it. It's windows 2003.
-
NetAdmin2436 Member Posts: 1,076Yeah, 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.htmlWIP: CCENT/CCNA (.....probably) -
whistler Member Posts: 108binarysoul 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. -
sprkymrk 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. -
binarysoul Member Posts: 993sprkymrk 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