uznut Posted May 5, 2004 Share Posted May 5, 2004 i am trying to copy a file across a network but i can only use the computer name. \\C02022\atmrpts thats what i type in the adress bar to get to that folder. but i put it in a script and it doesn't give me an error it just doesn't copy the files. Link to comment Share on other sites More sharing options...
uznut Posted May 5, 2004 Author Share Posted May 5, 2004 filecopy("\\C02022\atmrpts\tr24012.zip", "c:\tr24012.zip") Link to comment Share on other sites More sharing options...
Triton Posted May 5, 2004 Share Posted May 5, 2004 Try this: $check=$check=FileExists("\\computer\sharename\file.exe") If $check=1 Then filecopy("\\computer\sharename\file.exe","C:\file.exe",1) $check=FileExists("C:\file.exe") If $check=1 Then msgbox(0,"","Copy successful") Else msgbox(0,"","Copy Unsucessful") Endif EndIf Triton Link to comment Share on other sites More sharing options...
uznut Posted May 5, 2004 Author Share Posted May 5, 2004 nope it still didn't work Link to comment Share on other sites More sharing options...
scriptkitty Posted May 5, 2004 Share Posted May 5, 2004 Perhapse just to get it going you could do the dos way runwait(@comspec & ' /c copy "\\C02022\atmrpts\tr24012.zip" c:\tr24012.zip','',@sw_hide) AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now