Search found 313 matches

by MigrationUser
2021-Jul-13, 5:43 pm
Forum: Meta: Site Feedback / Forum Q&A
Topic: Book announcement - Batchography: The Art of Batch Files Programming
Replies: 0
Views: 16998

Book announcement - Batchography: The Art of Batch Files Programming

03 May 2016 14:27 elias Hello fellow CMD scripters and Batch files programmers, I am following the forums' rules and this post is not a 3rd party service or website advertisement. I am all in favor of knowledge and this post is just a book announcement. Batch files scripting was the first language I...
by MigrationUser
2021-Jul-13, 5:33 pm
Forum: Windows CMD Shell
Topic: Strip folder, file and extension from a string?
Replies: 0
Views: 3131

Strip folder, file and extension from a string?

24 Jun 2016 11:43 NDog Is it possible to strip a folder, file and extension from a string only? eg - \\uncpaththatdoesnot-exist\1\2\3\4\5\6\7\8\9\really long path\abcdefghijklmnopqrstuvwxyz\foo!OS!bar%PROMPT%baz\ 34234 \Technical Experts Exchange ss64 rocks\RD 123\VPN 456\parent folder\myscript.sh r...
by MigrationUser
2021-Jul-13, 5:11 pm
Forum: Windows CMD Shell
Topic: Batch translator
Replies: 0
Views: 4137

Batch translator

25 Jan 2016 21:19 Batcher I am working on a translator made in batch and I keep receiving a missing operator error does anyone have any idea why? Just for background information due to the number of translations verb.bat calls a file based on the first letter of user input here is the code for verb....
by MigrationUser
2021-Jul-13, 4:51 pm
Forum: Windows CMD Shell
Topic: Extended commands from batch files wrapped into an executable file
Replies: 0
Views: 5911

Extended commands from batch files wrapped into an executable file

03 Oct 2016 23:11 Aacini In my opinion, the first post of this thread should be something similar to this one: Tricksy should wrote: I downloaded the "Bat To Exe Converter" program from this F2KO Software page and started to use its special features for batch files, like "%extd% /mess...
by MigrationUser
2021-Jul-13, 4:37 pm
Forum: Windows CMD Shell
Topic: SETLOCAL ENABLEDELAYEDEXPANSION
Replies: 0
Views: 10609

SETLOCAL ENABLEDELAYEDEXPANSION

24 Apr 2010 00:46 RG Whoever is interested, In another post on this forum there were some questions about enabling delayed expansion. I decided to start another post and expound on it to give the topic the attention it deserves. There are probably many ways to explain delayed expansion. Here is my e...
by MigrationUser
2021-Jul-13, 12:11 am
Forum: Windows CMD Shell
Topic: Find free drive letter for temp drive mappings but skip cdrom
Replies: 0
Views: 7435

Find free drive letter for temp drive mappings but skip cdrom

26 Jun 2008 22:09 avery_larry I did this: setlocal enabledelayedexpansion for %%a in (f g h i j k l m n o p q r s t u v w x y z) do ( if not exist %%a:\ ( if 1!tmpsource!==1 ( set tmpsource=%%a: ) else ( if 1!tmpdest!==1 set tmpdest=%%a: ) ) ) so I could set a couple of temporary drive mappings for ...
by MigrationUser
2021-Jul-12, 10:42 pm
Forum: Windows CMD Shell
Topic: Remove all files and subfolders but NOT the root folder methods
Replies: 0
Views: 6603

Remove all files and subfolders but NOT the root folder methods

13 Jan 2011 10:53 allal echo deleting all but the root folder: this first method is taken from https://ss64.com/nt/del.html @echo off color cb REM method #1 pushd %1 del /q *.* for /f "tokens=*" %%G IN ('dir /b ') do rd /s /q "%%G" in this second method we will lock the root fold...
by MigrationUser
2021-Jul-12, 10:24 pm
Forum: Windows CMD Shell
Topic: How to slice the output of: FSUTIL FSINFO DRIVES
Replies: 0
Views: 7602

How to slice the output of: FSUTIL FSINFO DRIVES

01 Mar 2008 14:59 budhax Hello, this command: FSUTIL FSINFO DRIVES outputs something like: Drives: A:\ C:\ D:\ 1. How to get drives list, one by line? A:\ C:\ D:\ 2. How to get "Drives: A:\ C:\ D:\" in a variable's value? Thank in advance. ---------------------------- #2 02 Mar 2008 16:36 ...
by MigrationUser
2021-Jul-12, 9:33 pm
Forum: Windows CMD Shell
Topic: Remove trailing spaces on a String
Replies: 0
Views: 9032

Remove trailing spaces on a String

25 Sep 2008 20:15 JLee First, Great site - used it many times ! I know this is a trivial task to do and probably several ways to accomplish. Below is my first try using shell commands to drop out the trailing spaces on a string. In my particular case, there were trailing spaces on a directory name t...
by MigrationUser
2021-Jul-12, 9:25 pm
Forum: Windows CMD Shell
Topic: [Batch Game] Tetris v 1.3
Replies: 0
Views: 8614

[Batch Game] Tetris v 1.3

09 Aug 2010 06:56 SmartGenius [Batch Game] Tetris v 1.3 - by SmartGenius Download: smart.code-makers.net/ [website now 404, requires KBD.exe] The classic tetris game, coded in batch, by me. Try the game, use keys S (Move down) A( Move left) D (Move rigth) R (Rotate) X (exit game). @Echo off @title T...