Windows 10: Calling Batch File People Solved

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 4,999
    Windows 10 Pro X64 15063.138
       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 ComputersSystem Spec

  2.    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 ComputerSystem Spec


  3. Posts : 4,999
    Windows 10 Pro X64 15063.138
       18 Jul 2016 #13

    Please post the contents of the entire batch file.
      My ComputersSystem Spec

  4.    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 ComputerSystem Spec

  5.    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 ComputerSystem Spec

  6.    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 ComputerSystem Spec

  7.    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 ComputerSystem Spec

  8.    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 ComputerSystem Spec

  9.    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 ComputerSystem Spec

  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 ComputerSystem Spec


 
Page 2 of 3 FirstFirst 123 LastLast

Related Threads
Hi there forum, how do you change the Visual effects using a batch file or registry file. Thanks, Edward.
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...
Can't download batch file in General Support
Can't download batch file "10services_default.bat" to solve windows 10 start menu problem.
Solved Writhing Batch File in General Support
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
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...
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:37.
Find Us