Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / copy files to certain area on hd

Author
Message
kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 8th Oct 2009 01:26
Ok i know i how to use the copy file command. the thign i dont know is lets say you are making a program and you want it to send a file to everyones desktop.
look at code snippet

So in the code i bolded my username for windows. What if you dont know the persons username what do you put in the spot.

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Oct 2009 02:29
send it to the "all users" desktop?

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
kuljot
15
Years of Service
User Offline
Joined: 2nd Jan 2009
Location: sacramneto, ca united states
Posted: 8th Oct 2009 05:42
I dont think that available on vista. Does anyone have anything more specific and examples. Please i really need to know this

Gateway GT5628 Quad Core Desktop Intel Core 2 Q6600 2.4GHz Quad Core 3072MB RAM / 500GB 7200 SATA II Hard drive DVD RW 18X multi dual NVIDIA GeForce 8500GT ....
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Oct 2009 11:24 Edited at: 8th Oct 2009 11:29
How about using the find first and find next commands to fill an array with all the folders in the USERS folder; and then using that information to copy the files accross to where you want them?



Hope that helps

edited to add example

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 8th Oct 2009 15:00 Edited at: 8th Oct 2009 15:00
In Vista there's a folder called the Public Desktop. It's empty by default, but everything in there will be displayed on all desktops for every user - much like the "All Users" in XP.

The path to it is C:UsersPublicDesktop

Login to post a reply

Server time is: 2024-09-28 10:22:21
Your offset time is: 2024-09-28 10:22:21