i want to use the "SYSTEMINFO |find/i"Total Physical Memory:"" command and then get the response into a textbox(field) within access.
I have a database of all MachineNames in the company and for each machine name i have a field for the Memory, CPU, WindowsInstallD ate etc etc but i want to be able to use a 'refresh/update' CmdButton on the form which will query the machine and update the relevant fields on the form.
i have been able to write the reply into >C:\output.tx t and then read the contents of the output.txt file back into access and use that.... but ewwwww!!!! that's very messy!!!
there must be a simple way to set it as a variable?
like
and then Textbox.Value = StrTempMemory
i know it's the wrong code but (off the top of my head) it demonstrates what i mean...
I have a database of all MachineNames in the company and for each machine name i have a field for the Memory, CPU, WindowsInstallD ate etc etc but i want to be able to use a 'refresh/update' CmdButton on the form which will query the machine and update the relevant fields on the form.
i have been able to write the reply into >C:\output.tx t and then read the contents of the output.txt file back into access and use that.... but ewwwww!!!! that's very messy!!!
there must be a simple way to set it as a variable?
like
Code:
StrTempMemory = shell(CMD.exe "SYSTEMINFO |find/i'Total Physical Memory:'")
i know it's the wrong code but (off the top of my head) it demonstrates what i mean...
Comment