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 at 12:07 PM.

  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

    :)
     
  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]
    
    
     
  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 at 12:09 PM
    #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.)
     
Thema:

Batch script - Move specific file ext

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

  2. Remote execution of specific batch file on network.

    in Windows 10 Network and Sharing
    Remote execution of specific batch file on network.: Hi, I am trying to setup a function on my home server in which ISOs can be created and burned over the network using the server pc's optical drives. I am using oscdimg and imgburn command prompt utilities for this. I have created a script that runs on the local PC, and based...
  3. 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?...
  4. 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...
  5. 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...
  6. Batch scripting problems

    in Windows 10 Ask Insider
    Batch scripting problems: So i found a bug. In batch scripting, I can only store 3 variables. I don't know the cause for this. Here's the code, if you need it. @ echo off title Elevator OS by Lackmey on YouTube and Reddit set gdata=No data found (this one works) set 1data=No data found (this one...
  7. 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?...
  8. 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,...
  9. 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***...
  10. Batch script question

    in Windows 10 Support
    Batch script question: Hello, I want make a batch script to delete a spefic folder on the C disk, but how can I get only that spefic folder? I got this: Code: FOR /D %%p IN ("C:\USERS\%USERNAME%\Downloads\*.*") DO rmdir "%%p" /s /q cd C:\USERS\%USERNAME%\Downloads\ del *.* /q /s timeout /t 5...