Search found 63 matches

by budhax
29 Jan 2020 04:09
Forum: DOS Batch Forum
Topic: Command Line to get the PRODUCT ID of Dell/Acer notebooks?
Replies: 1
Views: 3871

Re: Command Line to get the PRODUCT ID of Dell/Acer notebooks?

For ACER notebooks, the PRODUCT ID (SKU) is a left sub-string of the SerialNumber. So, the command line is:

Code: Select all

wmic bios get serialnumber
NXH62EZ00794700B346600
Take the 10 left characters and add dots. PID is: NX.H62EZ.007

Product ID is well described here: https://youtu.be/_N8BfdCvMRg
by budhax
27 Jan 2020 19:52
Forum: DOS Batch Forum
Topic: How to get all key/value from WMIC command?
Replies: 2
Views: 4920

Re: How to get all key/value from WMIC command?

Thank you ShadowThief
by budhax
23 Jan 2020 21:05
Forum: DOS Batch Forum
Topic: How to get all key/value from WMIC command?
Replies: 2
Views: 4920

How to get all key/value from WMIC command?

On my Asus ZenBOOK S13 UX392FN, this command: wmic computersystem get systemskunumber outputs this: SystemSKUNumber and this one: wmic computersystem list /format:list give me this: AdminPasswordStatus=3 AutomaticResetBootOption=TRUE AutomaticResetCapability=TRUE BootOptionOnLimit= BootOptionOnWatch...
by budhax
23 Jan 2020 20:48
Forum: DOS Batch Forum
Topic: Command Line to get the PRODUCT ID of Dell/Acer notebooks?
Replies: 1
Views: 3871

Command Line to get the PRODUCT ID of Dell/Acer notebooks?

Hello, I am talking about the PRODUCT ID (PID) of notebooks, this alpha-numeric number defining a unique hardware configuration. I am not talking about the SERIALNUMBER: the very unique machine ID. I am not talking about the MODEL: a brand's family name, including a many variants of hardware configu...
by budhax
08 May 2017 07:17
Forum: DOS Batch Forum
Topic: Words with star char are ignored in FOR loop
Replies: 5
Views: 5850

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: 5850

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: 5850

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: 8717

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: 3905

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: 3905

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: 4914

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: 4914

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: 5439

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: 5439

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: 8157

Re: How to duplicate randomly some files ?

Thanks all, it works fine.
This is exactly what I needed.