running Windows command:msinfo32.exe
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
running Windows command:msinfo32.exe
Hi All,
New to RR and evaluating a requirement to use this environment.
Stuck at the first hurdle, but believe can help me to understand RR ways
Need to capture some system data from command msinfo32.exe, and have been trying to run the following
put shell("C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe /categories +Components /report D:\myinfo1.txt")
which has failed, assuming as a result of the spaces in the path defined.
the commannd is also passed parameters as /categories +Components etc, not sure if this is to fail as well once the path issue has been ironed out.
How do I achieve this task?
Thanking you all...
Koti Koti
New to RR and evaluating a requirement to use this environment.
Stuck at the first hurdle, but believe can help me to understand RR ways
Need to capture some system data from command msinfo32.exe, and have been trying to run the following
put shell("C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe /categories +Components /report D:\myinfo1.txt")
which has failed, assuming as a result of the spaces in the path defined.
the commannd is also passed parameters as /categories +Components etc, not sure if this is to fail as well once the path issue has been ironed out.
How do I achieve this task?
Thanking you all...
Koti Koti
Hi Koti,
you could try to QUOTE all your paths with a possible space in it:
Not tested but you get the picture
Best
Klaus
you could try to QUOTE all your paths with a possible space in it:
Code: Select all
...
put QUOTE & "C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe" & QUOTE into tExe
put QUOTE & "D:\my info1.txt" & QUOTE into tOutput
put shell(tExe && "/categories +Components /report" && tOutput)
...
Best
Klaus
Hi Klaus,
getting a script error, resorted in the following line
put "C:\Progra~1\Common~1\Micros~1\MSInfo\Msinfo32.exe /categories +Components /report " & quote & tFilename & quote into tCommand
but not very tidy I think since need to keep 8 character for directory, and remember to check this for each path defined.
getting a script error, resorted in the following line
put "C:\Progra~1\Common~1\Micros~1\MSInfo\Msinfo32.exe /categories +Components /report " & quote & tFilename & quote into tCommand
but not very tidy I think since need to keep 8 character for directory, and remember to check this for each path defined.
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Location: Aalst, Belgium
- Contact:
Take a look at the 'shortFilePath' function - it helps convert paths to the old 8.3 DOS-compatible format.
Jan Schenkel.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com