Windows 10: Batch script - Move specific file ext

Discus and support Batch script - Move specific file ext in Windows 10 Support to solve the problem; Good Day, I'm running Windows 10 and searched a few threads but didn't fine one specific to my needs so hoping someone could help me out. What I would... Discussion in 'Windows 10 Support' started by matrixebiz, Jul 22, 2021.

  1. Batch script - Move specific file ext


    Good Day, I'm running Windows 10 and searched a few threads but didn't fine one specific to my needs so hoping someone could help me out. What I would like is a batch script to search a folder and all it's subfolders for a specific file ext of my choosing, for example *.onetoc2 and move it to a Temp directory of my choosing creating the same folder name structure within it of where the original came from just in case I need to move the files back to their original location. Thank you

    :)
     
    matrixebiz, Jul 22, 2021
    #1
  2. PARoss Win User

    Batch File to install a network printer with a specific Post Script driver?

    I've seen people use the following in a batch file to install a printer:

    Code:
    \\PrinterServerName\PrinterShareName 
    [b]My question is... can this be done where i also supply a specific Post Script Driver?[/b]
    
    
     
    PARoss, Jul 22, 2021
    #2
  3. Running PowerShell script as a batch file

    Hello Baldo,



    Thank you for writing to Microsoft Community Forums.



    I understand that you want to execute the PowerShell commands as a batch file.



    I tried executing the batch file on my machine but I was unable to execute it as the command was incomplete. However, after making some changes in the command I was able to execute the batch file.



    You can try the following command by saving it in a batch file and check if that helps.



    powershell –Command Get-AppxPackage Microsoft.3dBuilder | Remove-AppxPackage



    Also, as the query is related to running a PowerShell script using a batch file, I suggest you to post the issue on

    TechNet
    forums where we have professionals who have more knowledge about the issue.



    Hope it helps.



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, Jul 22, 2021
    #3
  4. Batch script - Move specific file ext

    Writing batch files

    I haven't done any coding for a very long time and I am looking for a tutorial and command list for making a batch file in win10. All I can seem to find are videos or sites that tell you that you use notepad to save a file as a .bat with virtually no info
    on the actual programming/scripting. I know it'll all come back to me once I do one or two basic files, but I need a detailed refresher. Any suggestions?

    (Specifically, I need a program to replace lines in one text file with lines from a different text file.)
     
    CosmicCowboy, Jul 22, 2021
    #4
Thema:

Batch script - Move specific file ext

Loading...
  1. Batch script - Move specific file ext - Similar Threads - Batch script Move

  2. Batch scripting

    in Windows 10 Software and Apps
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:Code and result:Code:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press...
  3. Batch scripting

    in Windows 10 Gaming
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:Code and result:Code:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press...
  4. Batch scripting

    in Windows 10 Network and Sharing
    Batch scripting: Hi, here's the code that I used for 3 DISM commands to start automatically after pressing a key:@echo off echo You are going to use DISM. echo 1. To check the image. echo 2. Scan your PC's health echo 3. Restore your PC'S health. echo To continue, press any key. echo Before...
  5. Restart a specific program with a batch file

    in Windows 10 Ask Insider
    Restart a specific program with a batch file: I have to restart Windows Audio Device graph multiple times a day to the point that I just want to map a button on my stream deck to end the task. Is there a way to create a shortcut to end the task? I've tried taskkill /f /im audiodg.exe but that was unsuccessful. Any ideas?...
  6. PageFile.sys batch script

    in Windows 10 Virtualization
    PageFile.sys batch script: Hello, I need help writing a batch script that would configure Windows Virtual Memory based on the amount of RAM installed If you have 4 GB of RAM, set virtual memory to 8 GB (Custom size: set both initial and maximum size to 8192) If you have 8 GB of RAM, set virtual memory...
  7. Batch Scripts / Programs.

    in Windows 10 Performance & Maintenance
    Batch Scripts / Programs.: The members and quests who use this forum know how professional, informative and helpful it is! In order to help members solve their problems/issues we often ask them to run certain programs and perform certain tasks and then upload [ post ] the results to the forum for us...
  8. Batch File to install a network printer with a specific Post Script driver?

    in Windows 10 Drivers and Hardware
    Batch File to install a network printer with a specific Post Script driver?: I've seen people use the following in a batch file to install a printer: \\PrinterServerName\PrinterShareName My question is... can this be done where i also supply a specific Post Script Driver?...
  9. Batch Folder and Batch File/Move Software

    in Windows 10 Software and Apps
    Batch Folder and Batch File/Move Software: Looking for recommendations for software that handles automatic batch folder creation according to defined rules. Also looking for software that handles automatic file and folder moving into more than one directory according to selection criteria (size, date, extension,...
  10. Running PowerShell script as a batch file

    in Windows 10 Network and Sharing
    Running PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***...