Search found 11 matches

by imothep85
15 Jun 2014 02:07
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

thanks for your help :D it works perfectly :D
by imothep85
15 Jun 2014 01:08
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

now i have

@echo off
echo my way
for /f "skip=1" %%G in ('wmic bios get serialnumber') do >>%%H echo %%G&GOTO BREAK
:BREAK


but that gives me a file called H :D
by imothep85
14 Jun 2014 15:36
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

i found this http://www.computing.net/answers/progra ... 22144.html but i dont know where to add that to my actual bat
by imothep85
14 Jun 2014 11:36
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

also another question now it is working, but instead of having "serial.txt" it is possible to give to the txt file the serial number as a file name?

like C7N0CJ575014308.txt instead of "serial.txt"


thanks again
by imothep85
14 Jun 2014 09:38
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

yeaaaaaaaaaaah lol it works fine finally :D but why do you think it depend of the windows version?
by imothep85
14 Jun 2014 08:44
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

well actually i can write without problem to my c:\test folder the file "serial.txt"

but inside i allways have the line "serialnumber" wich i want to remove and only keep the number.

also my windows is windows7 ultimate edition 64bits
by imothep85
14 Jun 2014 07:55
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

well actually i try and i try again, i m on windows 7 64bits, i put your code into a txt file wich i rename to test.bat, i put that on the folder c:\test, i tried to use the bat ouside or on others folders but that change nothing :s im trying with this @echo off setlocal For /F "tokens=2 delims...
by imothep85
14 Jun 2014 06:33
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

well i was looking trought internet , but under windows7 its different :s

sand also i saw some people dont have bios serial number, i dont know why, so i try

wmic diskdrive get serialnumber
but i still get the words "serial number"
by imothep85
14 Jun 2014 04:44
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

i tried the two codes :s im under windows 7
by imothep85
14 Jun 2014 02:39
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

Re: wmic comand in cmd

hi thanks, i try to do a bat with your code but that dont want to run :s that doenst save the file also :s
by imothep85
13 Jun 2014 17:16
Forum: DOS Batch Forum
Topic: wmic comand in cmd
Replies: 23
Views: 12459

wmic comand in cmd

hi to all, i have a little problem i try to get the serialnumber from the bios so id do: wmic bios get serialnumber and the problem is, that gives me: "serialnumber" xxxxxxxxxxxxxx (xxxx is the serialnumber) i need to save JUST the serial number witout the text "serialnumber" in ...