Quick Search for:  in language:    
fetches,Computer,Name,User,Simple
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,290,928. lines
 Jobs: 179. postings

 How to support the site

 
Sponsored by:

 
You are in:
 

Does your code think in ink?
Login





Latest Code Ticker for Visual Basic.
Check Placement of Form on Screen
By CubeSolver on 11/20


RT Full Duplex
By Brian Black on 11/20


C++ Template Hack
By OpcodeVoid on 11/20


Click here to see a screenshot of this code!DeskTop Generator
By Ziad Said on 11/20

(Screen Shot)

SQLMan
By Darwin H. de Leon on 11/20


Klik! CompareLib...Co mpare and synchronize schema differences in your Access databases...
By Özden Irmak on 11/20


listview000sher if
By Sherif Omran on 11/20


Using ComboBox instead of TextBox
By SMA Soft on 11/20


Click here to see a screenshot of this code!ColorFade
By SMA Soft on 11/19

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

An Easiest Way To get ComputerName and UserName

Print
Email
 
winzip icon
Submitted on: 12/9/1999
By: Dasari. Ravi Kumar(r&d; teamworks)  
Level: Not Given
User Rating: By 15 Users
Compatibility:VB 4.0 (32-bit), VB 5.0, VB 6.0

Users have accessed this code 16693 times.
 
 
     It fetches the Computer Name and User Name in a Simple way
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
12/9/1999 5:33:00 AM:lee
Good job. Code is self explanatory
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/9/1999 5:36:00 AM:Kwee
Needs some explanation
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/9/1999 5:37:00 AM:Smith
Functions are very simple!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/9/1999 7:35:00 AM:Liaisons
Very nice tips!  Thank You alot!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/13/1999 12:05:50 AM:jennifer
simple way of using apis
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/13/1999 12:16:49 AM:guna
good. I request you to send me 
info
regarding how to get freespace of 
the disk.u can mail me at this id.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/5/2000 11:32:58 AM:Jamie
Thanks for the code.  Very easy to 
understand and easy to implement into 
program.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/27/2000 2:54:08 PM:Jeff Nelson
This would be great if it would work 
over a network, I have been looking for 
something like this to match users 
names to workstations, do yo think it 
could be mondified to do so?
 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/13/2000 7:04:30 AM:wstewart
Good Code
In NT you can 
use:
environ("username")
Maybe in 
the future you could just post the code 
used instead of making us download the 
forms and project file?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/10/2000 11:18:01 PM:Iskandar
It helps me to develop my in house 
software for my collegue. Keep up the 
good work
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/27/2000 5:15:49 PM:Dan Messenger
Excellent !
But how do you get the 
username of somebody logged onto a 
different computer from that which you 
are on? (Win95 LAN)?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/9/2001 6:42:28 PM:Jason
I also ask how can you get the username 
from a remote workstation
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
2/27/2002 8:10:16 PM:Danny Weyand
great code simple but effective
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/19/2002 10:54:26 AM:CC
I shortened your code to one function, 
Thought it may be of use to 
others.
Public Function 
ComputerName() As String
    Dim 
NameSize As Long
    Dim X As Long
 ComputerName = Space$(32)
NameSize = Len(ComputerName)
    X = 
GetComputerName(ComputerName, 
NameSize)
End Function
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/14/2002 12:43:07 PM:Ty O'Malley
Thank you for the submission.  It was 
simple to understand and easy to 
incorporate into my current project.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.