Page 2 of 3 FirstFirst 123 LastLast

  1. Joined : Apr 2014
    Space coast of Florida
    Posts : 4,352
    Windows 10 Pro X64 14393.576
       18 Jul 2016 #11

    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 System SpecsSystem Spec


  2. Joined : May 2016
    Posts : 58
    windows 10
       18 Jul 2016 #12

    AndreyT said: 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 System SpecsSystem Spec


  3. Joined : Apr 2014
    Space coast of Florida
    Posts : 4,352
    Windows 10 Pro X64 14393.576
       18 Jul 2016 #13

    Please post the contents of the entire batch file.
      My System SpecsSystem Spec


  4. Joined : Aug 2015
    Posts : 318
    Windows 10 Pro
       18 Jul 2016 #14

    Ztruker said: 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 System SpecsSystem Spec


  5. Joined : Aug 2015
    Posts : 318
    Windows 10 Pro
       18 Jul 2016 #15

    Ztruker said: View Post
    Please post the contents of the entire batch file.
    Calling Batch File People - Windows 10 Forums
      My System SpecsSystem Spec


  6. Joined : Aug 2015
    Posts : 318
    Windows 10 Pro
       18 Jul 2016 #16

    iamjim said: 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 System SpecsSystem Spec


  7. Joined : May 2016
    Posts : 58
    windows 10
       18 Jul 2016 #17

    AndreyT said: 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 System SpecsSystem Spec


  8. Joined : Aug 2015
    Posts : 318
    Windows 10 Pro
       18 Jul 2016 #18

    iamjim said: 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 System SpecsSystem Spec


  9. Joined : May 2016
    Posts : 58
    windows 10
       18 Jul 2016 #19

    AndreyT said: 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 System SpecsSystem Spec


  10. Joined : May 2016
    Posts : 58
    windows 10
       18 Jul 2016 #20

    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 System SpecsSystem 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 19:23.
Find Us
Twitter Facebook Google+



Windows 10 Forums