Hi,
I have an application which has several hard coded references to
"C:\My Documents". Shortly our network setup will be changed so that a
users My Documents folder will be on a mapped network home drive, and
nothing will be written to the local C:.
So my question is, how do I explicitly code the path to the users My
Documents folder so that it will use it no matter where it's sitting
(whether it be on C: or a network drive)?
ie instead of "C:\My Documents\" something like "My Documents\"
Thanks in advance,
Mong 3 4944
Google on:
CSIDL_PERSONAL VBA
This will lead you to code that gets the pathname of the current user's My
Documents folder (where-ever that folder may be).
HTH,
TC
"Mong" <mo*********@ya hoo.com.au> wrote in message
news:47******** *************** ***@posting.goo gle.com... Hi,
I have an application which has several hard coded references to "C:\My Documents". Shortly our network setup will be changed so that a users My Documents folder will be on a mapped network home drive, and nothing will be written to the local C:.
So my question is, how do I explicitly code the path to the users My Documents folder so that it will use it no matter where it's sitting (whether it be on C: or a network drive)?
ie instead of "C:\My Documents\" something like "My Documents\"
Thanks in advance,
Mong
Thanks for that, but I'm just wondering is API the only way?
Was hoping I wouldn't have to add too much code as I won't be the one
looking after the app, most probably the user will so I don't want to
over complicate it.
"TC" <a@b.c.d> wrote in message news:<106739978 7.554381@teutho s>... Google on:
CSIDL_PERSONAL VBA
This will lead you to code that gets the pathname of the current user's My Documents folder (where-ever that folder may be).
HTH, TC
"Mong" <mo*********@ya hoo.com.au> wrote in message news:47******** *************** ***@posting.goo gle.com... Hi,
I have an application which has several hard coded references to "C:\My Documents". Shortly our network setup will be changed so that a users My Documents folder will be on a mapped network home drive, and nothing will be written to the local C:.
So my question is, how do I explicitly code the path to the users My Documents folder so that it will use it no matter where it's sitting (whether it be on C: or a network drive)?
ie instead of "C:\My Documents\" something like "My Documents\"
Thanks in advance,
Mong
Maybe there is something available from Windows Scripting Host? (if the
users will have WSH on their PCs)
HTH,
TC
"Mong" <mo*********@ya hoo.com.au> wrote in message
news:47******** *************** ***@posting.goo gle.com... Thanks for that, but I'm just wondering is API the only way?
Was hoping I wouldn't have to add too much code as I won't be the one looking after the app, most probably the user will so I don't want to over complicate it. "TC" <a@b.c.d> wrote in message news:<106739978 7.554381@teutho s>... Google on:
CSIDL_PERSONAL VBA
This will lead you to code that gets the pathname of the current user's
My Documents folder (where-ever that folder may be).
HTH, TC
"Mong" <mo*********@ya hoo.com.au> wrote in message news:47******** *************** ***@posting.goo gle.com... Hi,
I have an application which has several hard coded references to "C:\My Documents". Shortly our network setup will be changed so that a users My Documents folder will be on a mapped network home drive, and nothing will be written to the local C:.
So my question is, how do I explicitly code the path to the users My Documents folder so that it will use it no matter where it's sitting (whether it be on C: or a network drive)?
ie instead of "C:\My Documents\" something like "My Documents\"
Thanks in advance,
Mong This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Srilatha |
last post by:
Hi,
I have a folder called "Public_Documents" on my web server. The documents in
this folder should be accessible to everyone.
I want to create a sub folder here "Private Documents". Only the server side
web service must have write permission on this sub folder. That is because,
the server side web service will create documents in ths...
|
by: bradley |
last post by:
I have an \upload folder beneath the web root where I have MS Word and other
documents that I would prefer not be available to the public. How can I
configure web.config to prevent these files from turning up in a search
engine list and prevent an unauthenticated user from typing in the url. This
is a hosted site, and I can use forms or...
|
by: John |
last post by:
Hi
I would like to get the path to the My Docuemnts Folder so I can list all
the files / folders in a TreeView.
Thanks John
|
by: Li Pang |
last post by:
Hi,
I want to create a file in My Documents folder. How to get the folder path?
Thanks in advance
|
by: Dixie |
last post by:
In a network situation, if you write files to the My Documents folder, would
it go to a different folder for each person's logon?
If so, how do I send a text file to My Documents with Docmd.TransferText. I
currently do this to a folder on the C drive, I am just not too sure about
how to incorporate My Documents instead of C:\Foldername\......
| |
by: Paul.Hawkes |
last post by:
All
I'm having trouble getting the following to work. I have been able to
download and delete a file with the same credentials and similar code,
but when I try upload the file. I get a returned error of "The Remote
server returned an error: (500) Internal Server Error." from the SPS.
Is there something that must be set up on SPS to allow...
|
by: queanbeyan |
last post by:
Hi
I have found that many of my potential users of my application are not
able to write to their program files directory on C:\program files,
however they have access to 'My documents'.
i have mapped some code to 'c:\documents and
settings\%username%\documents' but I dont know how to map the default
deployment application folder to that...
|
by: Dennis C. Drumm |
last post by:
How do I programmatically get the path for the windows shared documents
folder which is also the all user's document folder.
Thanks,
Dennis
|
by: evenlater |
last post by:
I have an Access application on a terminal server. Sometimes my users
need to export reports to pdf, rtf or xls files and save them to their
own client device hard drives.
They can do that right now the way I have this set up, but it's
confusing and slow. When they browse for a place to save the reports,
they see all of the drives on the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |