Windows 10: Batch/Command file to copy file to c:\windows\sysWOW64

Discus and support Batch/Command file to copy file to c:\windows\sysWOW64 in Windows 10 Support to solve the problem; Hi there, I tried creating a batch file on a usb stick, but it could not copy files to a windows system folder. I require administration run to... Discussion in 'Windows 10 Support' started by Amazing10, Mar 6, 2020.

  1. Amazing10 Win User

    Batch/Command file to copy file to c:\windows\sysWOW64


    Hi there,

    I tried creating a batch file on a usb stick, but it could not copy files to a windows system folder.
    I require administration run to execute this copy, but when i ran using administration, it doesn't know where to find the files on the usb stick.

    The usb stick has the following 2 files. The usb stick changes drive letter depending whose pc it is running at.
    1. At root .\README.txt
    2. .\folderA\testfile.txt

    In my batch file (textcopy.bat), the following script :
    copy README.txt c:\windows\syswow64
    copy ,\folderA\testfile.txt c:\windows\syswow64

    Ideas?

    The part i think it is missing when running as administrator is specifying the current location of the file.

    :)
     
    Amazing10, Mar 6, 2020
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Mar 6, 2020
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Mar 6, 2020
    #3
  4. Batch/Command file to copy file to c:\windows\sysWOW64

    Batch file

    thank you for your reply. how to merge the codes so that the batch file does this

    the batch file displays the options below

    1. open the *.spl file in notepad
    2. delete the *.shd and *.spl files
    3.exit

    commands execute as options are selected
     
    Sandeep Bhugoo, Mar 6, 2020
    #4
Thema:

Batch/Command file to copy file to c:\windows\sysWOW64

Loading...
  1. Batch/Command file to copy file to c:\windows\sysWOW64 - Similar Threads - Batch Command file

  2. Batch commands

    in Windows 10 Network and Sharing
    Batch commands: I know this stuff is kind of old tech, but would anyone know how to make a script that goes through the contents of a folder or file and uses them as command-line arguments say in pseudocode it might look something like: for each item in Desktop, copy %name% to D:\ a USB...
  3. Using variables with the rename command in a batch file

    in Windows 10 Network and Sharing
    Using variables with the rename command in a batch file: Hello, I am trying to use variables in renaming a robocopy log file but I continually receive a 'syntax error'. Everything works perfectly until I use the rename command. I am using the latest build of Windows 10. Any advice will be appreciated, thank you. The batch...
  4. Batch file to search directory for file type and copy to new location

    in Windows 10 Support
    Batch file to search directory for file type and copy to new location: Hi all, Not sure if posting in correct area, I would like to have a batch file that can search a directory or drive for file type and copy that file into a new directory renaming the file to reflect what users folder it came out of. To be a little more specific, I have...
  5. DOS Command issued from Batch file

    in Windows 10 Network and Sharing
    DOS Command issued from Batch file: I have been running a batch file to list my personal file, and output the listing to a text file in a folder dv7. I then use the text file to compare to files on another computer or external drive, as backup. For some reason it no longer works. The command in the BAT file...
  6. Batch Files

    in Windows 10 Network and Sharing
    Batch Files: I cannot remember how to open a FILE browser in batch, i was trying to create something were it opens a file browser, and the file you click on, gets deleted. https://answers.microsoft.com/en-us/windows/forum/all/batch-files/335a0e0d-62b0-4615-b303-4a7bb548cc6c"
  7. batch file

    in Windows 10 Network and Sharing
    batch file: I want a BAT file to be executed when a USB plugged in to the PC. How can I do it? https://answers.microsoft.com/en-us/windows/forum/all/batch-file/1af5ec02-b6c8-4916-959b-ed0327a964e7"
  8. Copying files to my C:

    in Windows 10 Network and Sharing
    Copying files to my C:: Whenever I try copying a file to my C:, I get this error: "Error 0x80070522: A required privilege is not held by client" I have tried to give full control to all my accounts from the security, and tried to share my C: drive on the network and also I have tried to set UAC...
  9. Need to create batch file for "net share" command

    in Windows 10 Network and Sharing
    Need to create batch file for "net share" command: I created a simple command from powershell that maps a drive for me using the "net share" command (see below). However, i want to turn this in to a batch file so I do not have to type it every time. When I name it filename.bat and try to run it, I get a system error 5 has...
  10. Batch file hide command window

    in Windows 10 Support
    Batch file hide command window: I have a batch command to back up a subdirectory: xcopy "C:\All\*" "E:\Allback\*" /E /Q How can I hide the command window during the execution? 40984

Users found this page by searching for:

  1. copy a file to windows\syswow64