Page 2 of 3 FirstFirst 123 LastLast
  1.    18 Jul 2016 #11
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 5,251
    Windows 10 Pro X64 15063.483

    It's spread across two lines I believe. It's the rest of the xcopy statement.

    C:\Windows>xCopy J:\DCIM\198___07\*.* /D /C
    J:\DCIM\198___07\IMG_99.JPG
      My ComputersSystem Spec
  2.    18 Jul 2016 #12
    Join Date : May 2016
    Posts : 63
    windows 10
    Thread Starter

    Quote Originally Posted by AndreyT View Post
    So, how do you invoke your batch file? Shortcut? Manually from command prompt? Some other way?
    I double click on the batch file itself in its Windows folder
      My ComputerSystem Spec
  3.    18 Jul 2016 #13
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 5,251
    Windows 10 Pro X64 15063.483

    Please post the contents of the entire batch file.
      My ComputersSystem Spec
  4.    18 Jul 2016 #14
    Join Date : Aug 2015
    Posts : 369
    Windows 10 Pro

    Quote Originally Posted by Ztruker View Post
    It's spread across two lines I believe. It's the rest of the xcopy statement.

    C:\Windows>xCopy J:\DCIM\198___07\*.* /D /C
    J:\DCIM\198___07\IMG_99.JPG
    The first line is the batch file command.

    The second line is the feedback produced by that command - the name of the file xcopy attempts to copy.

    Nothing is split here.
      My ComputerSystem Spec
  5.    18 Jul 2016 #15
    Join Date : Aug 2015
    Posts : 369
    Windows 10 Pro

    Quote Originally Posted by Ztruker View Post
    Please post the contents of the entire batch file.
    Calling Batch File People - Windows 10 Forums
      My ComputerSystem Spec
  6.    18 Jul 2016 #16
    Join Date : Aug 2015
    Posts : 369
    Windows 10 Pro

    Quote Originally Posted by iamjim View Post
    I double click on the batch file in its Windows folder
    And in which folder is this batch file located?

    Judguing by the error message, this batch file is stored in C:\Windows folder. If so, then I don't understand how you expect this to work. If simply double-clicked in FIle Explorer, this batch file will nonchalantly attempt to copy your photos to C:\Windows. The latter is protected from unauthorized modification. In fact, it should not work in Windows 8 or Windows 7 either, for exactly the same reason.

    (And I find it strange that someone would want to copy their photos straight to C:\Windows.)
      My ComputerSystem Spec
  7.    18 Jul 2016 #17
    Join Date : May 2016
    Posts : 63
    windows 10
    Thread Starter

    Quote Originally Posted by AndreyT View Post
    And in which folder is this batch file located?

    Judguing by the ceero message, this batch file is stored in C:\Windows folder. If so, then I don't understand how you expect this to work. This batch file will nonchalantly attempt to copy your photos to C:\Windows. The latter is protected from unauthorized modification.

    (And I find it strange that someone would want to copy their photos to C:\Windows.)
    Perhaps I wasn't clear earlier. The folder the batch file is in is an ordinary folder in a completely different internal drive from the C: drive Windows is in. Yes, the reason it's failing is because, for some bizarre reason, the batch file must think it's in the Windows directory and it's trying to copy to that directory which is forbidden.

    This is the same batch file in the same folder, trying to copy from the same location that is in a drive completely unaffected by the upgrade that has been working perfectly for years before I upgraded to Windows 10
      My ComputerSystem Spec
  8.    18 Jul 2016 #18
    Join Date : Aug 2015
    Posts : 369
    Windows 10 Pro

    Quote Originally Posted by iamjim View Post
    Perhaps I wasn't clear earlier. The folder the batch file is in is an ordinary folder in a completely different internal drive from the C: drive Windows is in. Yes, the reason it's failing is because, for some bizarre reason, the batch file must think it's in the Windows directory and it's trying to copy to that directory which is forbidden.

    This is the same batch file in the same folder trying to copy from the same location that has been working perfectly before I upgraded to Windows 10
    OK, that's indeed strange.

    What happens if you do the same thing from Command Prompt (instead of File Explorer)? I.e. if you start Command Prompt, cd to your batch file's location on that other drive and run it manually from the prompt?
      My ComputerSystem Spec
  9.    18 Jul 2016 #19
    Join Date : May 2016
    Posts : 63
    windows 10
    Thread Starter

    Quote Originally Posted by AndreyT View Post
    OK, that's indeed strange.

    What happens if you do the same thing from Command Prompt (instead of File Explorer)? I.e. if you start Command Prompt, cd to your batch file's location on that other drive and run it manually from the prompt?
    I'll do that if you want, but to get this file working I added a change to the drive and folder it's in at the beginning of the batch file. When I do that it works.
      My ComputerSystem Spec
  10.    18 Jul 2016 #20
    Join Date : May 2016
    Posts : 63
    windows 10
    Thread Starter

    Here's another of several oddities that came with 10. The address (path?) bar at the top gives a network address rather than a local address. I don't know how to fix that or several others either.
      My ComputerSystem Spec

 
Page 2 of 3 FirstFirst 123 LastLast


Similar Threads
Thread Forum
How to change visual effects using batch file or registry file?
Hi there forum, how do you change the Visual effects using a batch file or registry file. Thanks, Edward.
General Support
String with spaces in set /p (batch file)
Hi! I would like to let a user type in things with spaces in set /p. This is the code I currently have that does not work: :newdoc2 cls echo What do you want to say? set saynew=%randomnum% set /p saynew= if %saynew% == %randomnum% goto...
Software and Apps
Can't download batch file
Can't download batch file "10services_default.bat" to solve windows 10 start menu problem.
General Support
Solved Writhing Batch File
Here is my batch file but it will not delete the file? Must be missing something :( del "C:\Users\Larry\AppData\Local\TractorParts\tractor\ConfigSetting" Trying to delete the ConfigSetting File
General Support
Solved How do I find out what program is calling a .dll file on startup?
My neice had a virus which I successfully cleaned out, but now every time I start up the laptop I get an error message that it couldn't load "C:\Users\her name\AppData\Local\Call Kit\CallKit.dll" and I am having a real trial with attempting t...
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 12:41.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums