Question

C Drive Emulation In Terminal Server

Asked by: portdata

I have a client with Windows 2000 Server and Terminal Server installed.  They use 90% dumb terminals.  My software requires a C: drive for a critical file.  Is there a command or script to map a network share to create a virtual C: drive for each user?  I need a separate pseudo C: drive for each user.  These are dumb terminals - they have no local drives.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-01-04 at 12:56:28ID22111411
Tags

c

,

drive

,

server

,

terminal

Topic

Windows 2000 Operating System

Participating Experts
6
Points
500
Comments
21

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. lprint for dumb terminal
    Hi guys We are having trouble repairing one of our printers. To get round this I want to use a dot matrix printer to print via a dumb terminal using the sco unix ver 5.5 lprint command. The terminal is a WYSE 65es so I should have no problem with termcap info. Can you advi...
  2. Escape Sequence and terminal emulator
    Hi, I am a delphi programmer. can anybody tell me in detail what is escape sequence.And how can i send Escape sequence using delphi3 I am developing an application that will send information to Terminal emulator. And will take response from Teminal emulator. Question is: S...
  3. Dumb Terminal?
    I would like to get a dumb terminal I can put in another room of my house that could connect to my office computer and take control of it like PCAnwhere or VNC. Ideally, it would just plug into the network accept an IP address. I don't want to use an old computer because I ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: sirbountyPosted on 2007-01-04 at 12:57:56ID: 18246615

Hmm - have you tried mapping?

net use c: \\server\share

or using subst

subst c: \\server\share


I doubt it'll work, but that's the only suggestions I could offer...

 

by: portdataPosted on 2007-01-04 at 13:01:55ID: 18246651

I remember a restriction on net use that said you cannot map to a c: drive - only Citrix could.

I will have my client try it and see if ti works.

 

by: RubenvdLindenPosted on 2007-01-04 at 15:03:34ID: 18247754

If I understand you correctly, the users can't share the same file. If this is true, you're out of luck; you cannot assign some path to an existing drive and certainly not to a physical drive (you would have to remove the drive letter from the physical volume which will crash the terminal server).

The thing you mention about Citrix, the last experience I had with Citrix was that it maps the local drive to free drive letters (which is also possible by using DriveShare (http://support.microsoft.com/kb/321711/), although it's harder to implement).

I was wondering, if it's your software, can't you rewrite the routine to point to the user temp directory?

 

by: portdataPosted on 2007-01-04 at 15:55:02ID: 18248108

By way of explanation, the software is an SQL Server application that uses data link files to point to the database that is to be used.  It is a multi-practice practice management system.  When a user logs in, a list of supported therapy practices is presented and the user selects one.  The system then copies the appropriate data link file(datalink01.udl - datalink10.udl) to datalink.udl in a directory on c:.  Each of those data links points to a different SQL Server database - one for each different practice.  

That works just fine when a user has a local c: drive.  Each local drive is, indeed, unique to that user and that session.  With dumb terminals there is no c: drive.  We need to emulate on the terminal server in a share dedicated to each unique login user ID so each user ends up with a separate c: drive (mapped to a share).  I have often done this with a u: drive mapping but not a c: drive mapping.

The system was not originally designed to be a terminal server application.  This is only the second custoemr who is running it on that platform, and the first has PC's with C: drives, not dumb terminals.

If we do not have a unique C: drive, every user will be using the terminal server's C: drive and will be stepping on other users' data link changes, creating havoc.

The location of the UDL is hard coded in several hundred different ADO.Net SQL connection objects in the system.  I can handle the new location in code,but it would be far less time-consuming is I could simply map a network share to the c: drive letter.  This is the solution I am looking for - a way for each terminal server user to have a unique C: drive - unique because it is a unique network share.

I never said this would be easy - that is why it is worth 500 points to me!

 

by: sirbountyPosted on 2007-01-04 at 16:01:15ID: 18248147

I've given it some thought - and along with your follow up explanation, I simply don't see a way of accomplishing this with your setup...

Sorry I couldn't come up with something else for you...

~sirbounty

 

by: portdataPosted on 2007-01-04 at 16:10:20ID: 18248190

Thanks for taking the time to consider it.

 

by: victornegriPosted on 2007-01-04 at 16:14:30ID: 18248210

Can you set an environment variable to change the path the program writes to and store it in each user's profile? This would require slight coding changes but that would be your best bet.

 

by: victornegriPosted on 2007-01-04 at 16:15:43ID: 18248218

didn't read the last sentence in your last post... sorry. Didn't see the several hundred connection objects statement.

 

by: SysExpertPosted on 2007-01-04 at 17:42:20ID: 18248596

I would defintely take the time to make the UDL user definable somewhere so that it is never hard coded.

It was probably a bad programming practice to begin with.

My only other suggestion would be a small ram drive that can be defined as C:

Sorry about the extra work. But it will be a timesaver in the future.

I hope this helps !

 

by: victornegriPosted on 2007-01-04 at 18:35:32ID: 18248846

What exactly is the path that's hard coded?

 

by: RubenvdLindenPosted on 2007-01-05 at 00:37:55ID: 18249895

Perhaps a 'Search and Replace' on everything with "C:\datalink.udl"?

 

by: marcdoreyPosted on 2007-01-05 at 02:08:00ID: 18250153

There is something you can try that might work but I suggest you do the work on a weekend and take a full backup before you start.

It is possible to change the drive leter of the system drive on your terminal server, but as you can guess Microsoft dont reccomend it but I have done it in the past to secure TS installations further but always just after i have built the server not after everything is installed.
 

http://support.microsoft.com/kb/223188

That will then free up the drive letter for mapping, alternativly the version of Vm from Microsoft supports virtual drives.

 

by: RubenvdLindenPosted on 2007-01-05 at 02:56:48ID: 18250321

>> It is possible to change the drive leter of the system drive on your terminal server, but as you can guess Microsoft dont reccomend it but I have done it in the
>> past to secure TS installations further but always just after i have built the server not after everything is installed.

Yes you would have to reinstall almost all the applications on the system ... not something I would like to do.
I also had NT 4.0 TSE with MetaFrame running from M: instead of C:

 

by: portdataPosted on 2007-01-05 at 04:48:49ID: 18250751

My question was really very simple - can I map a drive letter C: to a network share on a Windows 2000 Terminal Server to give a dumb terminal a unique virtual C: drive?

No application changes, no terminal server reconfiguration, no additional hardware.

If someone has a solution that meets that criteria, please feel free to offer it and you will earn 500 points. If not, I'll withdraw the question.

 

by: shawngilbertPosted on 2007-01-05 at 04:56:49ID: 18250785

There is no way to map a C drive letter.

You have already been told this, so you can't withdraw the question.

http://www.experts-exchange.com/help.jsp#hi39 describes that [t]he important thing to remember is that you're setting the value for the question, not the answer. In other words, for some questions, the correct or best answer is "You can't do that." That doesn't mean you get your points back if someone has told you that.


 

by: portdataPosted on 2007-01-05 at 05:52:37ID: 18251080

To "shawngilbert":

I really do not care about the points.  I pay for unlimited points so they are basically irrelevant to me.

I am looking for a solution.

I am a Microsoft Certified Partner with a Network Infrastructure competency and a certified Small Business Specialist.  I have also been developing application software for almost 40 years.  When I post a question to Experts Exchange, I do so because I believe there are people in the group with valuable and extensive knowledge in the respective area and that they can save a lot of time and research when looking for answers to unusual problems.

I am more troubled by the slew of comments that suggest things like asking a customer to reconfigure the TS boot drive to another drive letter, or the gratuitous opinion that the application is coded badly by an individual who offers no suitable, practical solution to the stated problem.

I run a consulting business and I shudder to think these people would make such suggestions or comments to customers who pay for their advice and guidance.

I am accepting your answer - the 500 points are yours.  Yours was the most mature and useful answer that  got.

 

by: shawngilbertPosted on 2007-01-05 at 06:10:53ID: 18251213

portdata while I appreciate the points, I was under the impression that sirbounty had also pointed this out from the start.  Perhaps not in the same wording, but given his experience, I have often found that he is very talented at overcoming the impossible; he has helped me many times.

 

by: sirbountyPosted on 2007-01-05 at 06:15:10ID: 18251258

"talented at overcoming the impossible"

Well, I don't know about that!  :^)

shawn, don't worry about it...you came right out and gave the author the answer they were looking for.

Thanx,
~sirbounty

 

by: portdataPosted on 2007-01-05 at 07:03:03ID: 18251578

What I read from sirbounty's last comment was that he did not see a way of accomplishing the task.  I did not accept his answer as the solution or final answer because I was still hoping for a solution from someone else.

In the spirit of fair play perhaps we should have split the points, but as I indicated to you this is not about the points for me. It is about the solution, so I did not reflect at all on that issue.

I would not stand in the way of a point split - or take a position either way.

I really appreciate the fact that both of you are willing to spend your time helping others reach their end goals, or at least to realize that their goals are possibly unattainable.

Right now, I still have a problem to solve.  That is what I am planning to spend my time on.  If either or both of you have a strong feeling on a proper way to deal with the administrative points issue, pelase feel free to make it happen and I will agree if asked.

And please, both of you, stay in there and keep helping those in need and with far less knowledge and resources at times when they really benefit from your advice.

 

by: RubenvdLindenPosted on 2007-01-07 at 09:51:15ID: 18262462

>> I am more troubled by the slew of comments that suggest things like asking a customer to reconfigure the TS boot drive to another drive letter, or the
>> gratuitous opinion that the application is coded badly by an individual who offers no suitable, practical solution to the stated problem.

>> I run a consulting business and I shudder to think these people would make such suggestions or comments to customers who pay for their advice
>> and guidance.

Just to get things straight, you pay Experts Exchange for your points, but the experts here do not see anything of your money. Everyone here is basically a volunteer and doing their best to help you.
You're posting a problem and ask for a solution. I'm sorry you did not get a solution, but you did get the correct answer and we all tried to help you out with a workaround. I agree with SysExpert that writing configuration files to the root of a harddisk is bad coding practice; if a workstation or server in a company environment is correctly secured, the user doesn't even has permission to write files to the root directory. Microsoft has guidelines for writing software for a secured multi-user NT-based environment. If you don't follow these guidelines, sooner or later you'll run into problems.

I think it's a bit insulting that one of the solutions that will work (rewriting parts of your software to function correctly in a secured multi-user NT-based environment) is called inmature. This solution will also help you in the future to get things working correctly on e.g. Windows Vista.
I'm a software developer as well and my customers demand that my software fits in their environment, not the other way round.

 

by: portdataPosted on 2007-01-07 at 17:46:00ID: 18264093

It is unfortunate that some of the experts who responded to my question appear not to have examined the original question very carefully to determine what was being requested, and you do not have nearly enough information to have reached the INCORRECT conclusion that you have expressed.

The application does not write to the root of the C: drive.  It writes to a subfolder.  It is not a Windows NT-based application.  It is a generic application that is installed on just as many standalone PC's that are not part of a network as those that are either part of peer-to-peer networks or domain-based networks.

FYI, this particular customer purchased the software from our web site and a live demo we presented to him, and never mentioned that he was using Terminal Server or dumb terminals until last week, four months after he purchased the software.  He only indicated that he was planning to run the application on a Windows 2000 Server network.

I asked in my posted question whether it was possible to map a network share to a drive letter C: so the application could run on a TS-managed dumb terminal. That way an application that was written to write to c:\somefolder could still do so if c:\somefolder is mapped to a network share somewhere on the server.  If the answer to that question is no, then that is the only answer that really matters.

I did not ask for advice on application design.  The application works quite well as designed and is installed in 65 separate practices.  It is also running on a Windows 2003 Terminal Services platform with PC workstations.  It just cannot run as designed on a dumb terminal under Windows 2000 Terminal Server.  Some individual experts chose to offer an opinion on the design of the application in response to my request for a drive mapping solution, and I have rejected those proffered opinions as irrelevant and unsuitable solutions for my problem.  That is my expert opinion, and I believe that 40 years of application development experience and several Microsoft certifications support my expertise.

If you are going to respond to questions with unsolicited opinions instead of simply answering the question that was asked, then you had better prepare yourself for the disappointment of not having those opinions accepted or appreciated.  People who include gratuitous comments in their postings should not expect cheerful appreciation of those comments.  There is no place for fragile egos in this environment.

This is my last comment on this matter.  I am responding strictly out of my sense of priopriety.  It would be impolite to ignore your comments.  However nothing useful will result from continuing this discussion.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...