Why does copying to server not work
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Why does copying to server not work
dont forget to use /E parameter with robocopy
robocopy /E -- Copies subdirectories. Note that this option includes empty directories. For additional information
Also if you want your file to be alone in a folder and everything else to be removed then use /MIR
robocopy /MOV /E /MIR
http://technet.microsoft.com/en-us/libr ... 33145.aspx
robocopy /E -- Copies subdirectories. Note that this option includes empty directories. For additional information
Also if you want your file to be alone in a folder and everything else to be removed then use /MIR
robocopy /MOV /E /MIR
http://technet.microsoft.com/en-us/libr ... 33145.aspx
Knowledge is meant to be shared.
Re: Why does copying to server not work
Hi Zaxos,
thanks, yes i looked at all the /command options and i don't need /E as there is only one file to be moved at a time.
But thanks again to get me on the track. It first gave me a headage as windows did it fine and livecode not. Luckely found how it worked .
edit ---by the way i tried the /NP and /njs options so maybe there was no dos box pop-up, but it did'nt help --- edit
______________________________________________________________
Hi Simon,
well your not making only noise at all.
I will try your code tomorrow.
I checked in the files what i did and no i did not do what you did with separating the filename.
Allthough i am verry happy how Robocopy is working now, i still would like to see it working without an extra temporary dos box popping up on the screen.
It looks somewhat more beautifull, but if it's still not working then i'll stick to the Robocopy thingy
I will let you all know tomorrow if this works.
Thanks a lot for all your help, you all!
thanks, yes i looked at all the /command options and i don't need /E as there is only one file to be moved at a time.
But thanks again to get me on the track. It first gave me a headage as windows did it fine and livecode not. Luckely found how it worked .
edit ---by the way i tried the /NP and /njs options so maybe there was no dos box pop-up, but it did'nt help --- edit
______________________________________________________________
Hi Simon,
well your not making only noise at all.
I will try your code tomorrow.
I checked in the files what i did and no i did not do what you did with separating the filename.
Allthough i am verry happy how Robocopy is working now, i still would like to see it working without an extra temporary dos box popping up on the screen.
It looks somewhat more beautifull, but if it's still not working then i'll stick to the Robocopy thingy
I will let you all know tomorrow if this works.
Thanks a lot for all your help, you all!
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Why does copying to server not work
Everyone shhhhhhh....i still would like to see it working without an extra temporary dos box popping up on the screen.
Let sphere try my code first, if it doesn't work then we can say how to hide that dos box.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Why does copying to server not work
hahaha ok
another trick in the hat
another trick in the hat
Re: Why does copying to server not work
Hi Simon,
your code is working
so what i forgot to do was to put &tName in
thanks again!
pssst what was the rick to hide the dos box?....just in case we may need something in the future.....
your code is working
so what i forgot to do was to put &tName in
Code: Select all
put url("file:" & tCopyFile) into url("file://myServer/path/folder/" & tName)
pssst what was the rick to hide the dos box?....just in case we may need something in the future.....
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Why does copying to server not work
set the hideConsoleWindows to true
Simon
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Why does copying to server not work
Great!
thanks Simon
I'm saving it just in case we might need it.
thanks Simon
I'm saving it just in case we might need it.
Re: Why does copying to server not work
Don't forget to use BINFILE if you are not dealing with PLAIN TEXT files!
-> put url("BINFILE:"...
-> put url("BINFILE:"...
Re: Why does copying to server not work
yes you're right.
i did read about this so i used binfile like you said.
But thanks anyway Klaus!
i did read about this so i used binfile like you said.
But thanks anyway Klaus!