Go Back   Hardware Forums > Software Support Forums > Web Development

Reply
 
LinkBack Thread Tools
Old 02-03-2008, 04:22 PM   #1 (permalink) Top
Geek
 
Join Date: Jul 2007
Gender: Male
Posts: 96
Status: Offline
Default Script Using Current User

Whats The Code For Telling A Computer To Select A Current Loged In Username. I Tried Using %user% But It Doesn't Work. Im Writting A Script And It Works With My Username But If A Friend Of Mine For Instance Tries To Run The Script It Doesn't Work Because The Script Looks For My Username.

__________________
  Reply With Quote
Whats this? diNovo Media Desktop Laser
diNovo Media Desktop Laser
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
Dell £128.69 Free £128.69 In Stock Rated: 0 out of 5 - Number of votes: 0
Misco.co.uk £126.49 £3.99 £130.48 In Stock Rated: 4 out of 5 - Number of votes: 1355
IT247.com £113.29 Free £113.29 In Stock Rated: 4 out of 5 - Number of votes: 38
Old 02-03-2008, 10:08 PM   #2 (permalink) Top
The King

 
Addis's Avatar
 
Join Date: Jan 2004
Age: 18 Male
Posts: 5,255
Times Helpful: 403
My Mood: Drunk
Status: Offline

My Computer

%u%? Not in windows so I'm not sure.
__________________
Never trust a program you don't have the source code for.

My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers
Send a message via MSN to Addis   Reply With Quote
Old 03-03-2008, 05:13 PM   #3 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,826
Times Helpful: 309
My Mood: Paranoid
Status: Offline

My Computer

i'm not sure either, but maybe it's: %Current_User% or %current_user%, dunno

Last edited by donkey42; 03-03-2008 at 05:13 PM. Reason: typo
  Reply With Quote
Old 03-03-2008, 09:59 PM   #4 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,826
Times Helpful: 309
My Mood: Paranoid
Status: Offline

My Computer

ok, i now know its: %USERNAME%

or you may want: %USERPROFILE%



Source

Last edited by donkey42; 03-03-2008 at 10:06 PM. Reason: edit
  Reply With Quote
The Following User Says Thank You to donkey42 For This Useful Post: Show me >>
Old 04-03-2008, 06:03 PM   #5 (permalink) Top
Geek
 
Join Date: Jul 2007
Gender: Male
Posts: 96
Status: Offline
THANK YOU DONKEY. Ur The Man Or Should I Say.... THEE DONKEY THANKS!!
__________________
  Reply With Quote
Old 04-03-2008, 07:36 PM   #6 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,826
Times Helpful: 309
My Mood: Paranoid
Status: Offline

My Computer

your welcome, glad to be helpful
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this ram better than my current? sjhaycroft CPU, Motherboards and Memory 1 14-05-2007 02:45 AM
Little script I've been working on. Waffle Web Development 13 28-02-2006 09:57 AM
How much is my current PC still worth? Wouter General Hardware 7 16-02-2006 12:48 AM
moving current CPU to new MB snafu34 CPU, Motherboards and Memory 3 25-08-2004 04:31 AM


All times are GMT +1. The time now is 04:17 AM.


Copyright © 2000 - 2008 · HARDWAREFORUMS.COM · All rights reserved