Table.Count

Aquí podrás hablar de cualquier tema que no tenga un sección específica.
Hello friends



How to get the serial number of the hard drive And if the txt file has the serial number of the hard disk is the same as the serial number of the computer, send a message
HIDE: ON
Hidebb Message Hidden Description
usamakey escribió:
20 Jun 2021 10:09
HIDE: ON
Hidebb Message Hidden Description
Google translate lolol



HIDE: ON
Hidebb Message Hidden Description
Sin plugins / without plugins:
--Obtiene el número serial del disco local
--Gets the serial number of the local disk
local SerialNumber = Drive.GetInformation(String.SplitPath(_ProgramFilesFolder).Drive).SerialNumber

--Verifica si el serial coincide con el ingresado en File.txt
--Check if the serial matches the one entered in File.txt
if tostring(SerialNumber) == TextFile.ReadToString("AutoPlay\\File.txt") then
	--Si coincide muestra el mensaje
	--If it matches it shows the message
	Dialog.Message("Alert", "The serial number matches the text file")
else
	--De lo contrario, guarda el número serial en el archivo
	--Otherwise, save the serial number to the file
	TextFile.WriteFromString("AutoPlay\\File.txt", tostring(SerialNumber), false)
end
Inglés no es mi lengua materna / English is not my mother tongue
Si buscas el serial del computador / If you are looking for the serial number of the computer:
https://amsspecialist.com/viewtopic.php?f=23&t=7333
pexabosh escribió:
21 Jun 2021 19:38
Sin plugins / without plugins:
--Obtiene el número serial del disco local
--Gets the serial number of the local disk
local SerialNumber = Drive.GetInformation(String.SplitPath(_ProgramFilesFolder).Drive).SerialNumber
Inglés no es mi lengua materna / English is not my mother tongue
braggart ..... are you sure?/fanfarrón ... ¿estás seguro?
el español no es mi lengua materna/spanish is not my mother tongue



MEGA.NZ
HIDE: ON
Hidebb Message Hidden Description
pexabosh escribió:
21 Jun 2021 19:38
Sin plugins / without plugins:
--Obtiene el número serial del disco local
--Gets the serial number of the local disk
local SerialNumber = Drive.GetInformation(String.SplitPath(_ProgramFilesFolder).Drive).SerialNumber

--Verifica si el serial coincide con el ingresado en File.txt
--Check if the serial matches the one entered in File.txt
if tostring(SerialNumber) == TextFile.ReadToString("AutoPlay\\File.txt") then
	--Si coincide muestra el mensaje
	--If it matches it shows the message
	Dialog.Message("Alert", "The serial number matches the text file")
else
	--De lo contrario, guarda el número serial en el archivo
	--Otherwise, save the serial number to the file
	TextFile.WriteFromString("AutoPlay\\File.txt", tostring(SerialNumber), false)
end
Inglés no es mi lengua materna / English is not my mother tongue
thanks

This is just to identify a series. I have 10 serial drives
MORTEZA420 escribió:
22 Jun 2021 18:39
Thanks

This is just to identify a series. I have 10 serial drives
You probably no longer have the doubt, but I forgot to post this when you asked
https://amsspecialist.com/viewtopic.php?t=7333
if TextFile.ReadToString("Serial.txt") == System.GetDeviceIdentifier() then
     Dialog.Message("LOL", "El serial de este PC coincide con el archivo de texto :D")
end
Do you want multiple computers to be able to trigger the message?
Create a TXT with the list of identifiers, and copy this code
if String.Find(TextFile.ReadToString("Serial.txt"), System.GetDeviceIdentifier()) ~= -1 then
     Dialog.Message("LOL", "El serial de este PC está en la lista del archivo de texto :D")
end