Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 12-26-2006, 09:20 AM   #1 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default Bach

Is it possiable to detect a username via batch as i want to make a file that deletes a folder but is located in a username folder? , is this possiable or should i give up now?
Yek is offline  
Old 12-26-2006, 07:32 PM   #2 (permalink)
 
Monster Techie

Join Date: May 2004

Location: /usr/root/mn/us

Posts: 1,121

bla!! is on a distinguished road

Default

Yup, there are several environmental variables that will do this

%username% = username
%userprofile = c:\documents and settings\%username%\

type set and press enter and you'll see all of the environmental variables available to you.
__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 12-28-2006, 11:54 AM   #3 (permalink)
Yek
 
T.F's Resident Cool Guy...

Join Date: Aug 2006

Posts: 1,625

Yek is on a distinguished road

Send a message via AIM to Yek Send a message via MSN to Yek Send a message via Yahoo to Yek Send a message via Skype™ to Yek
Default

thanks
Yek is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On