batch

Forum discussion tagged with batch.
  1. Antoin Marc

    Question There is a .batch file in each specific folder!

    Hi everyone! I took some games data from a friend, they are some .iso files which can be unpacked to games But I found a file with .bat (batch) extension in each folder of these games folder and named with the same name of the folder I opened one and a command prompt has started to copy files...
  2. P

    [SOLVED] Every .exe file opens Microsoft Edge

    A friend ran a batch script and used the Assoc command to associate every .exe with Microsoft Edge... I'm struggling to revert this. How can I fix this?
  3. E

    Question (CMD) Saving a file to a variable not working ?

    Hello, I'm trying to write a batch file that relies on contents of a file being saved as a variable. I've looked for solutions on multiple forums, and none of them are working anymore. I'm using Windows 10 on a virtual machine in VirtualBox. This is what I've done: This is my first time...
  4. R

    [SOLVED] There is about 30000 directories on my desktop

    My friends launched a batch file on ,my windows computer with his USB key. He explained to me that this batch file loop and create a lot of folder on my desktop. After that I tried to remove them by using the windows terminal. I failed. I can't delete them manually, because i can't open the...
  5. AlvinSeville

    [SOLVED] Pattern (Syntax) for non-negative numbers in CMD?

    Hello! I'm trying to type pattern for non-negative numbers. When I execute the following command: echo 2223 | findstr /r "^[0-9][0-9]*$ ^+[0-9][0-9]*$" nothing is printed (there is no match found). How to fix it? I expected 2223 as output. Here are some examples: Input: "2223", Output: "2223"...
  6. DynV

    Question Delete duplicates created a particular day

    In a 2 days old directory with a bunch of files & subdirectories, I copied files. It turn out I did the process wrong and I should not have copied anything in that folder. When I learned of the right process I thought it would have attempted to copy the files there (and hopefully ask me what to...
  7. AlvinSeville

    Question Script doesn't remove files

    Hello everyone! I have script that you can look here or within GitHub Gist. It is planned to clean up Desktop via this script: all files those names are in items must be preserved and others must be trashed. But script doesn't work: no files removed after it execution. is_in_array function...
  8. M

    Question How to make a toggle switch in batch file ?

    How to toggle between this: wmic process where name="ScpService.exe" CALL setpriority "high priority" and this: wmic process where name="ScpService.exe" CALL setpriority "normal" When set to high, toggle to normal and when set to normal, toggle to high. Without creating 2 differents batch files.
  9. S

    [SOLVED] Batch file reading text files

    I've slowly gotten closer, step by step, to finishing this batch file of mine. This time, I need to be able to pull information from a text file into the batch file. For example, I'd like to be able to pull information such as a username and a password from a text file, and use it in the batch...
  10. S

    Question Directory/File Renaming/Replacing

    So, I've procured a way to list a group of folders in a directory, now I have another dilemma. How could I go about renaming the folders using a batch file to remove spaces? Unfortunately the project I'm working on requires me to not have any spaces in the directory names, therefore if the...
  11. S

    [SOLVED] Batch File Folder List

    So, I have a pretty niche request. I'm looking for a way to declare a list of folders as a variable. (Like how in linux I can use holder, and then call it later as $holder.) Unfortunately I don't need the list of subfolders or files. ONLY the main directory of folders. My hope is to have...
  12. derekullo

    [SOLVED] Updating a batch file without changing its desktop location

    I work at a library in IT with over 400 computers and I've been tasked with fixing a minor problem that threatens to take up hours of my time. On the desktop in our image and therefore all 400 currently deployed computers I put a shortcut, Restart.lnk, to a restart computer batch file in a...
  13. T

    Question How to open a bat.PFILE file?

    Hi! I am trying to open a protected Batch file that was sent to me, with a .PFILE extension. As far as I know, the file probably contains text, so I do not need to actually run the .bat file. I have tried opening it with Azure Information Protection as with a normal .PFILE, but it says it...
  14. B

    Computer Freezes When Playing Games/Photoshop

    It seems my computer is freezing to a solid color (red, green, blue, white) whenever I start playing a game or launch Photoshop. I reinstalled my graphics card drivers but no luck. Intel - Core i3-4160 3.6GHz Dual-Core Processor MSI - Z97S SLI Krait Edition ATX LGA1150 Motherboard Corsair -...
  15. R

    PXE : Reboot and select proper boot device.

    Desktop - Lenovo thinkcentre 0806-C5U Yesterday i took out my Harddrive and i put it back in to then come and see an error saying reboot and select proper boot device or insert boot media in selected boot device and press a key_ I don't know what i did wrong, this is my first time removing...
  16. D

    Best GPU for my system

    Hi guys, I'll be in the US in a few weeks for the holidays, and would like to purchase a new GPU while I'm there. I just want to make sure I don't end up walking away with a graphics card that isn't compatible with my system, since I'll be installing it when I get back to Europe and won't be...
  17. T-Tg  sQUAD

    Need A case !

    ok so i am building a new pc and the case i am using is sold out can you recommend a new Good case around the same price i would like it to be around the same price and in Black/Red or other colour's that match my build ! https://ca.pcpartpicker.com/user/ttg%40squad/saved/
  18. D

    How to best move files from a laptop to a new PC

    Hi all, I have recently built a new PC and want to transfer my old files from my laptop over. I'm currently sharing the files using Wi-Fi, but it is going very slowly at 0.5 - 1 MB/s while I have 200 GB+ of files to transfer... I am wondering if there are any other better methods to do this. I...
  19. Vitric9

    How do you update your Direct X?

    I know it is important to update your drivers so I check the Nvida website sometimes to check which drivers are available. So I have changed my Driver for my GPU 6 times since I bought it back in July. And when you install games from steam it will install the programs and or drivers you need to...