Category "batch-file"

Change Windows command prompt to show only current folder

Instead of showing C:\Users\test_user\Documents\Folder\etc show \etc or if possible limit it to a certain number \Document\Folder\etc

Batch file running under Task Scheduler continues running after batch file completes

This is sort of a follow-up to my question earlier (link). To test things out I made this simple batch file to ensure the Task Scheduler was properly executing

How to "comment-out" (add comment) in a batch/cmd?

I have a batch file that runs several python scripts that do table modifications. I want to have users comment out the 1-2 python scripts that they don't wan

use batch scripting and 7-zip to compress files

I have a folder composed of files : "1.txt" "2.txt" I need to compress them in a zip thanks to 7-zip via a batch file. Everything is working well with this sc

use batch scripting and 7-zip to compress files

I have a folder composed of files : "1.txt" "2.txt" I need to compress them in a zip thanks to 7-zip via a batch file. Everything is working well with this sc

The System cannot find the file specified error while deleting folder

Hi can some one suggest me how to delete below folder(abc) using a batch file? %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\abc

Windows Batch: Split String to individual characters to variables

in Windows Batch, if I had a variable (length can change) that was, for example: "hello world!" is it possible to "split" the variable so each character is its

Transfer files from one server to another using batch script

I have certain files in a folder on my local machine (Windows 8) and I want to transfer them to a remote server (Windows server 2012 R2) using a batch script. S

read csv file through windows batch file and create txt file

I have an excel file with 5 values each in a line. now, i want to read the .csv file through batch file and create text file with the contents in the file. Exam

Using Windows Batch Files to split large "Wrapped" files

I need a method to split files into multiple (or even half) based on KB not on number of lines. I am a Senior EDI Analyst and wrapped data tends to show up as

Batch file to move files by date modified

I have written a batch file, which creates empty folders for each date. My next task is to create another batch file, which moves each file in a directory, into

Save and Load .bat game

I'm making a text game written in bat, and the game has been done, (or more, a good part of it, such as the commands, and at the stage where you can play it); h

Change Directory command in batch file is not working

I need to create a batch file to do a few things for a class I'm in. Everything needed to run works but I cannot find a simple answer as to why change directory

how to make batch file not readable but executable?

I have automated a task. and I have to share batch file with team and other vendors. I want my script to be not readable but script should execute. How to achie

How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?

I want my batch file to only run elevated. If not elevated, provide an option for the user to relaunch batch as elevated. I'm writing a batch file to set a sys

Windows batch file to process camera images

I am trying to create a batch file to take photos off a camera or sd drive (which are specific and don't change. I then want to move all the *.jpg to a differ

Script to clear dummy files like .DS_Store ._foo thumbs.db etc

I have a external drive that I use on my car and on my TV, I use Mac OS X to manage files, but the hidden files that the Finder and Windows creates is very anno

Script to clear dummy files like .DS_Store ._foo thumbs.db etc

I have a external drive that I use on my car and on my TV, I use Mac OS X to manage files, but the hidden files that the Finder and Windows creates is very anno

How to close the cmd window after the batch file run

I want to close the command prompt after the bat file run. From the bat file it's calling two python scripts and I have tried basic exit and many solutions to c

How to get date in BAT file

I need to get today date in Window *.bat file. After it I would like to get day, month and year. How can I do this? I can't use PowerShell