473,789 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

User's Desktop: Locked Down?

I've been changing my apps to be compliant with MS's standard of
writing temp data only to C:\Documents And Settings\[UserName]....

But now I'm converting an app that creates .TXT files and spreadsheets
for the user.

Making them navigate to C:\Documents And Settings\[UserName].... seems
needlessly onerous if I can write those files to their desktop.

So, am I within the rules if I write a persistant/non-temp file that
the user requests to their deskdop?

Apr 19 '06 #1
2 1472
PeteCresswell wrote:
I've been changing my apps to be compliant with MS's standard of
writing temp data only to C:\Documents And Settings\[UserName]....

But now I'm converting an app that creates .TXT files and spreadsheets
for the user.

Making them navigate to C:\Documents And Settings\[UserName].... seems
needlessly onerous if I can write those files to their desktop.

So, am I within the rules if I write a persistant/non-temp file that
the user requests to their deskdop?


I generally write things to the temp folder (Environ("TEMP" )) and the
users can navigate there eaily using "%TEMP%".

I would eventually get p*ssed off if a load of icons suddenly covered up
Rebecca Romijn on my desktop :-)

Have you thought about storing a profile of where to write files to so
that user chooses the destination? For things like purchase orders,
which I generate in Word, I save these to a predefined place on the network.
Apr 19 '06 #2
Per Trevor Best:
Have you thought about storing a profile of where to write files to so
that user chooses the destination? For things like purchase orders,
which I generate in Word, I save these to a predefined place on the network.


No. But I was being thoughtless...

With the allergy season in full force, it's taking more and more coffee to get
my IQ above room temperature...

I think that's the answer: A little confirmation prompt with a default path and
a Common Dialog behind a "Change Destination" button.
--
PeteCresswell
Apr 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3521
by: ano1optimist | last post by:
We've got users sharing a database where the front end apps reside on the local PC while the backend app is on the network. We have repeated problems where certain users lock the database causing other users to get the Run-time error , currently locked by user 'admin' on machine 'xyz' when trying to log into the database. The users have a "/runtime" command on the property of their desktop. Can you clarify how the runtime works? My...
2
18796
by: Ken Durden | last post by:
I'm setting up an interface where clients must perform external locking before calling certain commands. I do this to force them to specify the duration the action they performed must persist before any other threads can be allowed to perform some action. My object exposes a Mutex which is locked via a IDisposable-Sentry class. I want to throw an exception if certain functions are called without this Mutex already being locked, but I...
0
1524
by: Mr Bounce | last post by:
Hi, Probably well worn ground, this, but im stumped and need some help, if you could: I'm trying to write some code for a windows service that needs to run in the background polling a server for commands. Certain commands require the service to interact with the application running on the active desktop, currently just to either shut it down or start it.
5
2075
by: Michelle Stone | last post by:
Hi everybody I am writing a simple asp.net application using form authentication. I store the list of all users and their passwords in an SQL Server database table. My client recently told me that he wants me to do something through which only one user can login using any given account name. I mean to say, for example, when a user called "abc" is online, another person shouldn't be
3
2822
by: rdemyan via AccessMonster.com | last post by:
My application is split into a front end and back end. Each user has their own copy of the front end. There are a few forms I only want to be open for one user at a time. So I've implemented the following strategy: 1) Create a table with the fields FormName, OpenStatus, FormUser 2) When a user tries to open the form, the code in the Form Load event checks the table for the OpenStatus value (True/False). 3) If the status is True, then...
5
3112
by: jwade1966 | last post by:
I work on a helpdesk and I have a user who has been adding records to a .mdb. They shut down the app, then later opened it again and now they get an error "Cannot update. Currently Locked". Nobody else is using the app it shouldn't be locked. The .ldb file seems to be the cause. Any suggestions on how to get things moving again??
12
6543
by: Dilip | last post by:
Hi All I have a server based C# console application. This application must hide its console window when its launched out on the field. So I dutifully P/Invoke'd FindWindow/ShowWindow combination to hide the console window at launch time. The application (for legacy reasons) hangs around by waiting on an old- fashioned Console.ReadLine() statement.
1
6135
by: Damjan Malis | last post by:
Hi guys... could anyone please help me with my problem getting mouse cursor position while desktop being locked (WIN + L). MSDN says: "The input desktop must be the current desktop when you call GetCursorPos. Call OpenInputDesktop to determine whether the current desktop is the input desktop. If it is not, call SetThreadDesktop with the HDESK returned by OpenInputDesktop to switch to that desktop." src:...
11
5027
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the database, in in both VB6 and VB.NET applications, I got the error "The Microsoft Jet database engine cannot find the input table or query 'myTable'. Make sure it exists and that its name is spelled correctly." Also, I got the error "The...
0
9511
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10136
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9016
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6765
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4090
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
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.