Search found 19 matches
- 10 Dec 2018 16:00
- Forum: DOS Batch Forum
- Topic: Get current directories
- Replies: 3
- Views: 3701
Re: Get current directories
thanks
- 10 Dec 2018 15:53
- Forum: DOS Batch Forum
- Topic: Get current directories
- Replies: 3
- Views: 3701
Get current directories
What a simple way to get current directories
It worked ,but the code really long , any simple way to do it?
Code: Select all
@echo off>Temp&for %%a in ("Temp.*") do ( set "_Dir=%%~par" )&Del Temp
- 25 Apr 2018 09:21
- Forum: DOS Batch Forum
- Topic: Detect and renaming the files
- Replies: 7
- Views: 6779
Re: Detect and renaming the files
sorry ,when i trying to complete the program ,i found patterns not working perfectly , @echo off setlocal enableExtensions disableDelayed Expansion for %%a in (""* DC *.mp4"") do ( for /f "delims=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ " %%b in ("%%~na") do ( echo(Found Anime "Detective...
- 17 Apr 2018 13:31
- Forum: DOS Batch Forum
- Topic: Detect and renaming the files
- Replies: 7
- Views: 6779
- 16 Apr 2018 06:03
- Forum: DOS Batch Forum
- Topic: Detect and renaming the files
- Replies: 7
- Views: 6779
Re: Detect and renaming the files
penpen said
Aacini said
I try to explain itIt would help us to help you, if you describe which point exactly you don't understand.
Aacini said
Thank you for inviting me,I do not know after editing it better,worse or over ......I invite you to carefully read the first post on this forum.
- 14 Apr 2018 13:23
- Forum: DOS Batch Forum
- Topic: Detect and renaming the files
- Replies: 7
- Views: 6779
Detect and renaming the files
Every week I downloaded mp4 files more than 200 episodes/series and many other types. such as .exe and .pdf .The original folder is the download folder,Now it have more than 100000 files including sub-folders(Because it is really tiring to rename and move the file one by one). Some of them i downloa...
- 03 Apr 2018 08:31
- Forum: DOS Batch Forum
- Topic: How to end LOOP at this situation
- Replies: 3
- Views: 4150
Re: How to end LOOP at this situation
.....DONE...... VARIABLE SPLITTER Test Vars.bat @echo off & call Vars.bat / ::goto skip echo. ::..Test 1................................................... echo. Split By Digits set "mystr=abcdefghijklmnopqrstuvwxyz" %v% mystr 2 set mystr echo. ::..Test 2................................................
- 27 Mar 2018 14:50
- Forum: DOS Batch Forum
- Topic: Look for a dos batch for password reset
- Replies: 7
- Views: 6923
- 26 Mar 2018 08:08
- Forum: DOS Batch Forum
- Topic: How to end LOOP at this situation
- Replies: 3
- Views: 4150
Re: How to end LOOP at this situation
Thanks pieh-ejdsch for your reply .Actually my function just for personal use ,that why i doest really care about "Recognition of parameters" and not name a subject related to function. But even i doest really care about it, i already divided parameter into several sub-areas but not completely done....
- 23 Mar 2018 11:01
- Forum: DOS Batch Forum
- Topic: How to end LOOP at this situation
- Replies: 3
- Views: 4150
How to end LOOP at this situation
I create this simple function because it really useful for me . (I don't care if someone already create this function or not ,because i try to make it myself). even my coding still bad. :oops: Q1.How to end LOOP at this situation without make others TEST not worked ? Output from test 3 : head=wxyz b...
- 19 Feb 2018 08:31
- Forum: DOS Batch Forum
- Topic: Make variable automatically count inside FOR loop
- Replies: 5
- Views: 4867
Re: Make variable automatically count inside FOR loop
Thanks........
- 17 Feb 2018 11:17
- Forum: DOS Batch Forum
- Topic: Make variable automatically count inside FOR loop
- Replies: 5
- Views: 4867
Re: Make variable automatically count inside FOR loop
Thank again Squashman ,you give me idea, after modified that,i got 100% what i need... @echo off SETLOCAL enabledelayedexpansion set "fn=987654321" set "str=%fn%" CALL :strLen str length set "n=0" FOR /L %%G IN (1,1,%length%) DO ( set /a n=!str:~-%%G,1! set n%%G=!n! ) echo %Str% echo %n1% %n2% %n3% ...
- 16 Feb 2018 11:51
- Forum: DOS Batch Forum
- Topic: Make variable automatically count inside FOR loop
- Replies: 5
- Views: 4867
Re: Make variable automatically count inside FOR loop
Thank Squashman,i try it
- 15 Feb 2018 17:40
- Forum: DOS Batch Forum
- Topic: Make variable automatically count inside FOR loop
- Replies: 5
- Views: 4867
Make variable automatically count inside FOR loop
Sample code manually set Variable n1 to n12, but when string have more than 12 digits ,it really tired to manually enter new SET Command set fn=956878543546 set str=%fn% set n1=%str:~-1,1% set n2=%str:~-2,1% set n3=%str:~-3,1% set n4=%str:~-4,1% set n5=%str:~-5,1% set n6=%str:~-6,1% set n7=%str:~-7,...
- 05 Feb 2018 16:24
- Forum: DOS Batch Forum
- Topic: Help Me
- Replies: 2
- Views: 2930
Re: Help Me
i tried this method and it worked ,but only read single line,do you know how to made it read multiple line ? @echo off Title Dictionary :start cls set /p data=<Dic.txt&set /p w= call set w=%%data:*%w%(=%% set m=%w:)=&rem.% If /i %m% == start (goto nf) echo %m% pause goto start :nf echo. echo Not Fou...