Search found 313 matches
- 2021-Jul-25, 11:42 pm
- Forum: Windows CMD Shell
- Topic: For /f loop with Progress Bar
- Replies: 0
- Views: 3708
For /f loop with Progress Bar
20 Jun 2016 15:21 StenioF Hello everyone, I would like to support to improve a batch script. My script is basically a loop-FOR as below and would like to add a progress bar. I researched a lot about progress bars, but basically all use a loop-FOR in the other and my script is use For-loop Too. I do ...
- 2021-Jul-25, 2:52 pm
- Forum: Windows PowerShell
- Topic: Georgian (ka-GE) locale information on "Windows Locales" page
- Replies: 0
- Views: 16333
Georgian (ka-GE) locale information on "Windows Locales" page
12 Feb 2018 11:08 george-chakhidze Hi, It would be nice if you add Georgian locale information to "Windows Locales" page: ss64.com/locale.html Name: Georgian Short string: ka Decimal value: 55 Hexadecimal value: 0×37 Name: Georgian (Georgia) Short string: ka-GE Decimal value: 1079 Hexadeci...
- 2021-Jul-25, 2:47 pm
- Forum: Windows CMD Shell
- Topic: Words with star character are ignored in FOR loop
- Replies: 0
- Views: 3061
Words with star character are ignored in FOR loop
11 Jul 2011 20:20 budhax Hello, This FOR loop ignores (jump over) strings including star character: * SET d=aaa* file*.* file3.txt FOR %%f in (%d%) DO (ECHO.%%~f) FOR %%f in ("%d: =" "%") DO (ECHO.%%~f) The output I got with this script is only the 3rd string: file3.txt I would l...
- 2021-Jul-25, 2:43 pm
- Forum: Windows CMD Shell
- Topic: extract file name extension from environment var
- Replies: 0
- Views: 3229
extract file name extension from environment var
13 Jul 2011 14:10 adealey I know how to extract a file name extension from a parameter (%~x1) but is there some way to apply this function to an environment variable? I swear I've seen something somewhere about doing that but nothing I have tried has worked. ---------------------------- #2 13 Jul 20...
- 2021-Jul-25, 2:38 pm
- Forum: Windows CMD Shell
- Topic: Character Limit and Nested FOR loops
- Replies: 0
- Views: 3205
Character Limit and Nested FOR loops
01 Jul 2011 03:25 //[T.0.P]// On this page near the bottom under the Long Commands and long filenames, it states that the commands are limited to 8190 characters. Does this included nested FOR loops? For instance, if I were to break down the commands in the FOR loops to their own lines, is that all ...
- 2021-Jul-25, 2:35 pm
- Forum: Windows CMD Shell
- Topic: Help in subtracting time in batch file
- Replies: 0
- Views: 3893
Help in subtracting time in batch file
06 Jun 2011 06:14 karnash Hi, I have a batchfile where I copy few files from one server to another. The files range from 1M to 10G and echo "Now starting to copy 10M file from source" >> C:\scripts\logs\network_performance_test_%date%.txt echo "========================================...
- 2021-Jul-25, 2:30 pm
- Forum: Windows CMD Shell
- Topic: find 'something' from the %computername% and act on it
- Replies: 0
- Views: 3146
find 'something' from the %computername% and act on it
04 May 2011 12:13 hilgie Hi, If the %computername% contains -a I want to set some variables. I want ot do this without writing the %computername% to a file and then use the findstr command (this is what I do now). Anybody any idea? Cheers, Danny P.S. This is what I do now: set tempfile1=%~dp0\tempfi...
- 2021-Jul-25, 2:24 pm
- Forum: Linux & macOS Bash
- Topic: chmod -x chmod
- Replies: 0
- Views: 17990
chmod -x chmod
12 Oct 2010 19:26 Simon Sheppard Youre in a data centre, with no contact with the outside world, theres a machine you must not reboot, and someone had the brilliant idea of performing a chmod -x chmod solve the problem Solutions: http://www.slideshare.net/cog/chmod-x-chmod --------------------------...
- 2021-Jul-25, 1:39 pm
- Forum: Linux & macOS Bash
- Topic: Please add the iptables syntax to ss64.com
- Replies: 0
- Views: 17930
Please add the iptables syntax to ss64.com
17 Feb 2019 06:43 tomhsiung Hello, Sir The iptables is a very very important package in Linux. It has lots of syntax. Please add it. Tom ---------------------------- #2 17 Feb 2019 22:27 Simon Sheppard good idea, I have added a man page for nft (nftables the newer version of iptables) https://ss64.c...
- 2021-Jul-25, 1:35 pm
- Forum: Linux & macOS Bash
- Topic: Comparing a string to the "newline" character
- Replies: 0
- Views: 19105
Comparing a string to the "newline" character
21 Jul 2010 14:55 bluesxman I need to do a string comparison in a script I'm writing that will check to see if a variable contains only the newline character. I'd like to do something like this, but it doesn't seem to recognise the "\n" if [ "${string}" = "\n" ] ; then ...