SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Outputing varibles.

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Outputing varibles.
Author Message
Andrew Brannon



Joined: 26 Feb 2001
Posts: 16

Post Outputing varibles. Reply with quote

I am trying to create a task that will report the free space on our different servers, and I am having problems with the "output", is there a way to Print the value of a varible inside of a text statement, either to the screen, printer, or email.

example:

dim Mbytes, number

Output:
There is {MYBYTES} MB of Free space remaining on the server.


Wed Feb 28, 2001 12:23 pm View user's profile Send private message
Len Fromzel ( Soft Tree)



Joined: 28 Feb 2001
Posts: 2

Post Re: Outputing varibles. Reply with quote

We'll look at your request in a nearest time and will get back to you.

: I am trying to create a task that will report the free space on our different
: servers, and I am having problems with the "output", is there a
: way to Print the value of a varible inside of a text statement, either to
: the screen, printer, or email.

: example: dim Mbytes, number

: Output: There is {MYBYTES} MB of Free space remaining on the server.

Wed Feb 28, 2001 2:42 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Outputing varibles. Reply with quote

use MessageBox for screen output
use MailSend for email output
use FileSave to save to a text file and then use FilePrint to print that file

: I am trying to create a task that will report the free space on our different
: servers, and I am having problems with the "output", is there a
: way to Print the value of a varible inside of a text statement, either to
: the screen, printer, or email.

: example: dim Mbytes, number

: Output: There is {MYBYTES} MB of Free space remaining on the server.

Thu Mar 01, 2001 10:24 am View user's profile Send private message
Andrew Brannon



Joined: 26 Feb 2001
Posts: 16

Post Re: Outputing varibles. Reply with quote

What is the syntax for? Can you give me an example? I have tried this several times and I get a variety of error messages. I can output the text that I specify or I can output the value of the varaible. But I can not output them in a combined statement. there must be a format issue involved. thank you.

: use MessageBox for screen output
: use MailSend for email output
: use FileSave to save to a text file and then use FilePrint to print that file

Thu Mar 01, 2001 11:47 am View user's profile Send private message
Andrew Brannon



Joined: 26 Feb 2001
Posts: 16

Post Re: Outputing varibles. Reply with quote

I think that I have now using the "concat" function.

: What is the syntax for? Can you give me an example? I have tried this several
: times and I get a variety of error messages. I can output the text that I
: specify or I can output the value of the varaible. But I can not output
: them in a combined statement. there must be a format issue involved. thank
: you.

Thu Mar 01, 2001 12:57 pm View user's profile Send private message
Andrew Brannon



Joined: 26 Feb 2001
Posts: 16

Post Re: Outputing varibles. Reply with quote

I have a new issue. I am using the following script to get the free space.
// These are the Variables

Dim c_bytes, Number
Dim mbytes, Number
Dim d_bytes, Number
Dim total, Number
Dim c_mbytes, Number
Dim d_mbytes, Number

// This gets the free space from the drives that are mapped to the PC
// and stores the data in c_bytes and d_bytes.

DiskGetFreeSpace( "R:", c_bytes )
MessageBox( c_bytes )

DiskGetFreeSpace( "W:", d_bytes )
MessageBox( d_bytes )

But the line that refers to d_bytes, is returning the wrong data. It should return 14.6GB but it returns 3.1GB. Can you help me with this.

: I am trying to create a task that will report the free space on our different
: servers, and I am having problems with the "output", is there a
: way to Print the value of a varible inside of a text statement, either to
: the screen, printer, or email.

: example: dim Mbytes, number

: Output: There is {MYBYTES} MB of Free space remaining on the server.

Thu Mar 01, 2001 2:03 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Outputing varibles. Reply with quote

DiskGetFreeSpace is for Windows 95 SR 1, DiskGetFreeSpaceEx for all other Windows versions and flavors

: I have a new issue. I am using the following script to get the free space.
: // These are the Variables

: Dim c_bytes, Number
: Dim mbytes, Number
: Dim d_bytes, Number
: Dim total, Number
: Dim c_mbytes, Number
: Dim d_mbytes, Number

: // This gets the free space from the drives that are mapped to the PC
: // and stores the data in c_bytes and d_bytes.

: DiskGetFreeSpace( "R:", c_bytes )
: MessageBox( c_bytes )

: DiskGetFreeSpace( "W:", d_bytes )
: MessageBox( d_bytes )

: But the line that refers to d_bytes, is returning the wrong data. It should
: return 14.6GB but it returns 3.1GB. Can you help me with this.

Thu Mar 01, 2001 6:26 pm View user's profile Send private message
Andrew Brannon



Joined: 26 Feb 2001
Posts: 16

Post Re: Outputing varibles. Reply with quote

Problem solved.

Thank you.

DiskGetFreeSpace is for Windows 95 SR 1, DiskGetFreeSpaceEx for all other
: Windows versions and flavors

Fri Mar 02, 2001 1:07 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.