Copyfile Error Code 70
Contents |
360 games PC games Windows copyfile error 5 games Windows phone games Entertainment All Entertainment vbscript copyfile error handling Movies & TV Music Business & Education Business Students & educators Developers runtime error 70 permission denied excel Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet runtime error 70 permission denied vba filesystemobject Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Band Microsoft Lumia
Runtime Error 70 Permission Denied Access
All Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
360 games PC games Windows
Runtime Error 70 Permission Denied Windows 7 Vb6
games Windows phone games Entertainment All Entertainment permission denied vba filecopy Movies & TV Music Business & Education Business Students & educators Developers mts explorer Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet https://support.microsoft.com/en-us/kb/147394 Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Band Microsoft Lumia https://support.microsoft.com/en-us/kb/172711 All Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site http://stackoverflow.com/questions/16071679/permission-denied-on-copyfile-in-vbs About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Permission denied on CopyFile permission denied in VBS up vote 13 down vote favorite I'm trying to automate pushing a file into my users' home directories, but am stuck on a "Permission Denied" error — is thrown on line 6 here, with the CopyFile call. There are other parts of the script (not shown) that create and copy folder contents using the same source and destination directories, and they work perfectly. runtime error 70 It's only when I use CopyFile that it fails. dim fso set fso = CreateObject("Scripting.FileSystemObject") if not fso.FileExists("H:\Minecraft\.minecraft\options.txt") then fso.CopyFile "C:\Minecraft\options.txt", "H:\Minecraft\.minecraft\" end if set fso = nothing H: is a network home directory, to which the current user has full read/write privs. I've tried adding/removing trailing slashes from the paths, adding "options.txt" to the destination path, removing the false argument... Not sure what else to try. Any thoughts? Thanks! FYI, this chunk of code, which comes immediately before the error-prone bit above, executes perfectly every time: if not fso.FolderExists("H:\Minecraft\.minecraft\bin\") then if not fso.FolderExists("H:\Minecraft\.minecraft\") then fso.CreateFolder("H:\Minecraft\.minecraft\") end if fso.GetFolder("C:\Minecraft\bin\").Copy "H:\Minecraft\.minecraft\" end if vbscript permission-denied copyfile share|improve this question edited Apr 18 '13 at 16:36 asked Apr 17 '13 at 22:56 Triz 3022619 add a comment| 5 Answers 5 active oldest votes up vote 39 down vote accepted I've only seen CopyFile fail with a permission denied error in one of these 3 scenarios: An actual permission problem with either source or destination. Destination path is a folder, but does not have a trailing backslash. Source file is locked by an application. share|improve this answer answered Apr 18 '13 at 16:48 Ansgar Wiechers 84.8k1