Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mapping a folder for dos program?

Status
Not open for further replies.

lmwtech

Technical User
Jan 18, 2004
135
US
I have the simplest of questions...so don't laugh. I have two pc's jioned by a hub. They are in the same workgroup, all relevent folders are shared, and i can see all that is needed and can access into all that is needed. I cannot get a dos based program to run from one machine onto the other. Any suggestions? i'm sure I mapped the drive or folder correctly....its pretty up front and simple....right?
Thanks in advance
lmwtech
 
Not enough information regarding the failure given, but I will ask if the DOS program expects to be run from a specific drive letter and/or folder?
 
And if you reference pathnamesis the pathname longer than 8 characters as well? Don't forget, in DOS C:\Program Files translates to C:\Progra~1 (for example)

--------------------------------------
"Insert funny comment in here!"
--------------------------------------
 
what is it your trying to do?

------------------------------------------------------
Matt
He's not the messiah, he's a very naughty boy
 
Pathnames are 3 or 4 characters. I have a folder named "care". In that folder is a dos based program named dyna. It runs fine on the machine which host this folder. I mapped this folder from the other machine...lets call them 1 and 2. pc 1 host the program pc 2 needs to run the program also. When on pc 2 I double click the correct icon to start the program located in the folder on pc 1 and the screen has a very quick dos box flash and dissappear. This is all i can get to happen.
 
From PC 2 Right click the folder in which the program is located and see if you get an option to map it to a drive letter. It should say something like "Map Network Drive".

When this is done you should get another drive in My Computer that points to that location. Make note of the drive letter.

Go to Start->Run and type command and press enter. A Dos box will open. at the prompt type the new drive letter. and press enter.

example:
C:\Documents and Settings\user\> X: 'enter' [green]\\Where X is the new drive letter you noted earlier[/green]

Then type the name of the program that you want to run:

X:\>dyna 'enter'

does it run, or do you get an error message?



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
On the host machine, does the dos program need supporting system files? If so they'll need to exist in the system folder on the remote machine too (if its 16 bit, \windows\system normally).

Also - as Freestone asked - does the dos program expect to be run from C: (some do)?
 
I will find this out over the weekend and let you know. Thanks to all very much!!!!!!!!!!!
lmwtech
 
Ok everybody here we go....I went to the site and tried to get the option of "map network drive" on the folder I needed. It doesn't give me the option. So I navigated to the needed folder then opened a command prompt to try to get the program to run...it won't. Now to make things more confusing let me explain what all I discovered in my snooping around to try to figure this out. Bare with me this will take a bit.

First to answer previous questions. The whole program resides in one folder on pc1 named "care". The program appears to expect to run from with in the care folder. Dyna.bat is the file that gets the program running. No other files are installed on any pc to make it run. Both pc1 and pc2 are running XP Pro.

When I go to the "computer name" tab, under sytem properties on pc1 I see the following:
computer description: perry kids pediatrics
full name: pkp
workgroup: workgroup

On pc2 I see the following:
computer description:
full name: pkp-2
workgroup: workgroup

When I open up a command prompt on pc1 I see:
C:\Documents and Settings\Nupur Kanani
which is a user on the pc.

When I do the same on pc2 I see:
C:\Documents and Settings\pkp

So....knowing this what would you do?

Thanks
lmwtech
 
Oops...I forgot to mention that when under the computer name tab if I hit change, pc1 shows pkp as its name and pc2 shows pkp-2 as its name.
 
It looks like you'll have to map it to a network drive from the command prompt.

At the prompt type the following and press retunr afterwords:

Code:
net use [red]X:[/red] \\[blue]pkp[/blue]\[green]care[/green]

It should tell you the command completed successfully.

now do
Code:
 X: ***enter***
dyna.bat ***enter***


does that do anything?



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Read dyna.bat! (right click, edit).

It should tell you what you need to know - as it will contain the commands that initiate the app - so you can see if it explicitly mentions C: (or other drive letter). If it is C:, you'll need to change dyna.bat - or get it changed - if you want to run it from the other machine, as your C: drive obviously can't be changed, and doesn't contain the Care folder.

 
Vacunita,
I have a really stupid question. Should I type EXACTLY what you have in your reply....astericks and all? And my keyboard does not have return on it do you mean enter?
lmwtech
 
In vacunita's post, where it says ***enter***, that means you have to press the Enter (Return) key. You only have to type the commands, not the instruction to press enter.

--------------------------------------
"Insert funny comment in here!"
--------------------------------------
 
Man...I feel like such a dunce. Being over technical I guess. One last thong, in the place of X would i put "CARE" I presume because thats the name of the folder i want to make available for network use?
Thanks to all you've all been very helpful and understanding!!!

LMWTECH
 
X: is the drive letter you will be assigning it to. the care folder is in green. I assumed the "care" folder was located in the machined you said was named [red]pkp[/red] Hence you are assigning drive X: to the care folder inside pkp. \\pkp\care thats what that means.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
lmwtech - have you read dyna.bat? It won't matter what drive letter you assign before running it, IF it explicitly references C: when running the app.
 
I'm getting ready to try the above in about an hour. At that time I'll read the dyna.bat file to see what it says. I assume I need to try the above commands from pci in order for the command prompt to be able to make the care folder available for network use...because that is the pc the care folder resides on.
lmwtech
 
No, You have to do this from PC2 which is where you want the folder to be available as a drive letter.






----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top