Windows 10: How do I use Format-function in VBScript Script File

Discus and support How do I use Format-function in VBScript Script File in Windows 10 Network and Sharing to solve the problem; I have a number 73.456662781901 I only want to show it as 73.46 The number is in the variable DSL and it shows the Disc Space Left on the... Discussion in 'Windows 10 Network and Sharing' started by Jake104E, Aug 25, 2020.

  1. Jake104E Win User

    How do I use Format-function in VBScript Script File


    I have a number 73.456662781901


    I only want to show it as 73.46


    The number is in the variable DSL and it shows the Disc Space Left on the particular hard drive


    I tried:


    formatDSL, "0.00"


    But the script fails - saying "variable is undefined: 'format'


    So - how do I do it in VBScript?

    :)
     
    Jake104E, Aug 25, 2020
    #1
  2. LemP Win User
  3. ability to script GPU-Z

    Is there a way to script GPU-Z I would like to be able to run GPU-Z from some scripting language and have the GPU info saved to a file in some format (XML, YAML etc).

    Any pointers/suggestion on how to get this information would be much appreciated
     
    mwoodpatrick, Aug 25, 2020
    #3
  4. Kane_832 Win User

    How do I use Format-function in VBScript Script File

    VBscript-ing

    How do i make a VBscript that calls another VBScript? I'm making a script that will do multiple things and i dont know how to do this.

    If my question doesn't make sense please let me know.
     
    Kane_832, Aug 25, 2020
    #4
Thema:

How do I use Format-function in VBScript Script File

Loading...
  1. How do I use Format-function in VBScript Script File - Similar Threads - Format function VBScript

  2. How do I run VBscript in Win11 24H2

    in Windows 10 Gaming
    How do I run VBscript in Win11 24H2: I have a VBscript that runs a bat-file to start up a program and set some startup-parameters - and it has worked in Win10.Now I have changed to Win11 and it does not react to double-click. I used to have a shurtcut placed in the Startup folder - but that does not work...
  3. How do I run VBscript in Win11 24H2

    in Windows 10 Software and Apps
    How do I run VBscript in Win11 24H2: I have a VBscript that runs a bat-file to start up a program and set some startup-parameters - and it has worked in Win10.Now I have changed to Win11 and it does not react to double-click. I used to have a shurtcut placed in the Startup folder - but that does not work...
  4. How can I designate a specific vbscript as trusted, so that that particular script does not...

    in Windows 10 Software and Apps
    How can I designate a specific vbscript as trusted, so that that particular script does not...: How can I designate a specific vbscript as trusted, so that that particular script does not trigger the open file security warning in Windows 10?...
  5. How can I designate a specific vbscript as trusted, so that that particular script does not...

    in AntiVirus, Firewalls and System Security
    How can I designate a specific vbscript as trusted, so that that particular script does not...: How can I designate a specific vbscript as trusted, so that that particular script does not trigger the open file security warning in Windows 10?...
  6. how do i remove a script file

    in Windows 10 Software and Apps
    how do i remove a script file: how do i remove a script file that pop up this morning, tried looking for it don't see it anywhere https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-remove-a-script-file/591e5a56-f815-4903-84ee-243d48455f4e
  7. how do i remove a script file

    in Windows 10 Gaming
    how do i remove a script file: how do i remove a script file that pop up this morning, tried looking for it don't see it anywhere https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-remove-a-script-file/591e5a56-f815-4903-84ee-243d48455f4e
  8. how do i remove a script file

    in AntiVirus, Firewalls and System Security
    how do i remove a script file: how do i remove a script file that pop up this morning, tried looking for it don't see it anywhere https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-remove-a-script-file/591e5a56-f815-4903-84ee-243d48455f4e
  9. How press STOP on Tomcat using VBSCRIPT????

    in Windows 10 Customization
    How press STOP on Tomcat using VBSCRIPT????: Hi,I wrote a vbscript code to open Tomcat8w.exe code is given below. My code works fine but now I want to press the "Stop" button on Tomcat to stop my service. How can I do that?? Please I need help its urgent.Code: Set cloner =...
  10. How do I use DCOUNT function

    in User Accounts and Family Safety
    How do I use DCOUNT function: Date Month Day Temperature Rainfall Flyers Price Sales Revenue 1/1/2017 January Sunday 27 2.00 15 0.3 10 $ 3.00 1/2/2017 January Monday 28.9 1.33 15 0.3 13 $ 3.90 1/3/2017 January Tuesday 34.5 1.33 27 0.3 15 $ 4.50 1/4/2017 January Wednesday...