Search found 59 matches

by budhax
08 May 2017 07:17
Forum: DOS Batch Forum
Topic: Words with star char are ignored in FOR loop
Replies: 5
Views: 1417

Re: Words with star char are ignored in FOR loop

Shorter solution. Thanks again.
by budhax
07 May 2017 15:09
Forum: DOS Batch Forum
Topic: Words with star char are ignored in FOR loop
Replies: 5
Views: 1417

Re: Words with star char are ignored in FOR loop

It works fine. Problem solved. Thanks a lot :)
by budhax
07 May 2017 12:55
Forum: DOS Batch Forum
Topic: Words with star char are ignored in FOR loop
Replies: 5
Views: 1417

Words with star char are ignored in FOR loop

Hello, This FOR loop ignores/passes the items containing the star char *. set list=coo*.* ses*.js sign bookmarkbackups\*.json for %%e in (%list%) do (echo.%%~e) So, the output is: sign Which loop can output all items (separated by a space)? coo*.* ses*.js sign bookmarkbackups\*.json Thanks and regar...
by budhax
08 Feb 2014 18:28
Forum: DOS Batch Forum
Topic: Ms Dos Library to externalize your subroutines
Replies: 6
Views: 3870

Ms Dos Library to externalize your subroutines

Hello, If you use the same subroutine(s) in many batch files, it could be useful to put them all in one file (Library.cmd) then include (call) this library from your batch files. So, you can update your subroutine(s) once in the Library. a script (caller.cmd) calling the subroutine LENTS in the Libr...
by budhax
04 Sep 2012 08:17
Forum: DOS Batch Forum
Topic: How to access PORTABLE MEDIA PLAYER with DOS command lines?
Replies: 2
Views: 1310

Re: How to access PORTABLE MEDIA PLAYER with DOS command lin

I think to be close to the solution. The goal is to mount the device's storage by UMS method (USB mass storage).

http://www.xda-developers.com/android/u ... axy-s-iii/

http://www.xda-developers.com/android/a ... -sandwich/

Thanks
by budhax
03 Sep 2012 14:11
Forum: DOS Batch Forum
Topic: How to access PORTABLE MEDIA PLAYER with DOS command lines?
Replies: 2
Views: 1310

How to access PORTABLE MEDIA PLAYER with DOS command lines?

Hello, After plug-in a SAMSUNG Galaxy S or Galaxy S2 (by USB cable), I get a simple removable drive. This volume was accessible by MS-DOS command line or .CMD script. So I was able to use my MS-DOS script to backup/restore some files/settings in my smart-phone. When I plug-in a SAMSUNG Galaxy S3, I ...
by budhax
23 May 2012 06:17
Forum: DOS Batch Forum
Topic: How to detect the MSDOS language?
Replies: 3
Views: 1674

Re: How to detect the MSDOS language?

Thank you Ed Dyreen.

Another solution by IA-32:
http://ss64.org/viewtopic.php?pid=5713#p5713

Code: Select all

takeown /f "%~1" /r /d y 2>nul
if errorlevel 1 takeown /f "%~1" /r /d o
icacls "%~1" /grant administrators:f /t
by budhax
22 May 2012 13:24
Forum: DOS Batch Forum
Topic: How to detect the MSDOS language?
Replies: 3
Views: 1674

How to detect the MSDOS language?

Hello, I wrote this script to take ownership recursively of the folder dropped on the script. m takeown /f "%~1" /r /d y icacls "%~1" /grant administrators:f /t The command on the 1st line (takeown) doesn't work if I use this script on a French Windows. Because the parameter &quo...
by budhax
16 Jul 2011 10:11
Forum: DOS Batch Forum
Topic: Word with star character are ignored in FOR loop
Replies: 3
Views: 2412

Re: Word with star character are ignored in FOR loop

Thank you aGerman. I prefer the solutions proposed there: m because their are independent of the number of item/word defined in the string d. I mean, solutions in ss64.org work for: ::String d contains 3 items SET d=aaa* file*.* file3.txt or ::String d contains 5 items SET d=file fileB.* blabla file...
by budhax
11 Jul 2011 13:24
Forum: DOS Batch Forum
Topic: Word with star character are ignored in FOR loop
Replies: 3
Views: 2412

Word with star character are ignored in FOR loop

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 like to get this: aaa* fil...
by budhax
13 Sep 2010 13:04
Forum: DOS Batch Forum
Topic: How to duplicate randomly some files ?
Replies: 6
Views: 3352

Re: How to duplicate randomly some files ?

Thanks all, it works fine.
This is exactly what I needed.
by budhax
05 Sep 2010 07:12
Forum: DOS Batch Forum
Topic: How to duplicate randomly some files ?
Replies: 6
Views: 3352

How to duplicate randomly some files ?

Hello, Let's a folder containing some PDF files: GeM-13117.pdf GeM-14404.pdf GeM-16853.pdf GeM-17914.pdf GeM-20255.pdf GeM-20559.pdf SOS-647272.pdf SOS-665824.pdf SOS-668677.pdf SOS-674574.pdf SOS-676535.pdf I would write a batch script duplicating randomly some files. The duplicated files will be e...
by budhax
26 Aug 2010 03:50
Forum: DOS Batch Forum
Topic: Find the "programm files" folder for both platform: 32/64bit
Replies: 1
Views: 1636

Find the "programm files" folder for both platform: 32/64bit

Hello, 1. Is this script a good/safe way to find the folder where softwares are installed, independently of the platform 32bit or 64bit ? SET PF=%PROGRAMFILES% IF /i NOT "%PROCESSOR_ARCHITECTURE%"=="x86" SET PF=%PF% ^(x86^) ECHO %PF% Pause 2. On a MS Windows 64bit platform, where...
by budhax
18 Jan 2009 20:15
Forum: DOS Batch Forum
Topic: How to put a string in the clipboard memory?
Replies: 1
Views: 2658

by budhax
17 Jan 2009 21:43
Forum: DOS Batch Forum
Topic: How to put a string in the clipboard memory?
Replies: 1
Views: 2658

How to put a string in the clipboard memory?

Hello,
Using DOS command, how to put a string in the clipboard memory (like Ctrl+C)?
Then you cat get this string with the shortcut Ctrl+V (when the DOS script is finish).
Thanks