PC Review


Reply
 
 
Jasper Recto
Guest
Posts: n/a
 
      30th Mar 2009
I would like to create a batch file that will copy a file to every users
desktop.

What command do I use to denote the current users profile?

\\Document and settings\CURRENT USER???\Desktop

Any ideas?

Thanks,
Jasper


 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a
 
      30th Mar 2009

"Jasper Recto" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I would like to create a batch file that will copy a file to every users
>desktop.
>
> What command do I use to denote the current users profile?
>
> \\Document and settings\CURRENT USER???\Desktop
>
> Any ideas?
>
> Thanks,
> Jasper


When you type
set{Enter}
at the Command Prompt then the variable %UserProfile% will immediately stick
out.


 
Reply With Quote
 
vanessa
Guest
Posts: n/a
 
      31st Mar 2009
If you want to copy a file for every users but don't want it to be duplicated
you want to copy it to C:\Documents and Settings\All Users\Desktop
adjust the path as you need.

"Jasper Recto" wrote:

> I would like to create a batch file that will copy a file to every users
> desktop.
>
> What command do I use to denote the current users profile?
>
> \\Document and settings\CURRENT USER???\Desktop
>
> Any ideas?
>
> Thanks,
> Jasper
>
>
>

 
Reply With Quote
 
ju.c
Guest
Posts: n/a
 
      1st Apr 2009
System Folder Variables:

%HomeDrive% - C:\
%SystemDrive% - C:\
%AllUsersProfile% - C:\Documents and Settings\All Users\
%HomePath% - C:\Documents and Settings\{username}\
%UserProfile% - C:\Documents and Settings\{username}\
%AppData% - C:\Documents and Settings\{username}\Application Data\
%TEMP% and %TMP% - C:\DOCUME~1\{username}\LOCALS~1\Temp\
%ProgramFiles% - C:\Program Files\
%CommonProgramFiles% - C:\Program Files\Common Files\
%SystemRoot% - C:\Windows\
%WinDir% - C:\Windows\
%CD% - \Current directory\


ju.c


"vanessa" <(E-Mail Removed)> wrote in message news:35B88549-E4B0-463E-853C-(E-Mail Removed)...
> If you want to copy a file for every users but don't want it to be duplicated
> you want to copy it to C:\Documents and Settings\All Users\Desktop
> adjust the path as you need.
>
> "Jasper Recto" wrote:
>
>> I would like to create a batch file that will copy a file to every users
>> desktop.
>>
>> What command do I use to denote the current users profile?
>>
>> \\Document and settings\CURRENT USER???\Desktop
>>
>> Any ideas?
>>
>> Thanks,
>> Jasper
>>
>>
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A script/batch to kill a batch file from scheduled tasks? Bogdan Windows XP Configuration 1 31st Jul 2009 06:05 AM
batch file call from a macro - how ? and required batch format VB-rookie Microsoft Excel Programming 3 5th Sep 2008 10:33 PM
calling multiple batch files from within a batch file yawnmoth Windows XP General 3 26th May 2008 06:47 PM
Batch file works in command line but not as a batch Danger Windows XP General 7 5th Feb 2008 04:50 PM
Save batch window msgs to a file from the batch prog Stephen Rainey Windows XP General 3 10th Jan 2007 12:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:20 PM.