batch

Forum discussion tagged with batch.
  1. 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...
  2. 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...
  3. 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.
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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 -...
  10. 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...
  11. 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...
  12. 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/
  13. 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...
  14. 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...