Calling Batch File People

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #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 Computers


  2. Posts : 132
    windows 10
    Thread Starter
       #12

    AndreyT said:
    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 Computer


  3. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #13

    Please post the contents of the entire batch file.
      My Computers


  4. Posts : 414
    Windows 10 Pro
       #14

    Ztruker said:
    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 Computer


  5. Posts : 414
    Windows 10 Pro
       #15

    Ztruker said:
    Please post the contents of the entire batch file.
    Calling Batch File People - Windows 10 Forums
      My Computer


  6. Posts : 414
    Windows 10 Pro
       #16

    iamjim said:
    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 Computer


  7. Posts : 132
    windows 10
    Thread Starter
       #17

    AndreyT said:
    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 Computer


  8. Posts : 414
    Windows 10 Pro
       #18

    iamjim said:
    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 Computer


  9. Posts : 132
    windows 10
    Thread Starter
       #19

    AndreyT said:
    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 Computer


  10. Posts : 132
    windows 10
    Thread Starter
       #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 Computer


 

  Related Discussions
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 13:21.
Find Us




Windows 10 Forums