command prompt opens than closes over network

jimmyshawg82

Junior Member
Dec 21, 2006
24
0
0
Hey guys,

I'm testing a few program's and their compatibility with windows XP (upgrading from WinME) and there is a Tas-Pro database program that im testing right now (in windows XP)

The program works fine when running on a local machine, but if I try to open it over the network (this program run in command prompt) it will open and than quickly shut down.

The file I am opening is called TasPro.bat

I right clicked it and went to Edit and its showing that it cannot find certain files in the subdirectories. Files such as Menu.run and such.

Is there some associations that i'm missing?

Thanks for the help.

-john
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
it's likely a path issue. if you call a batch file or executable, without the full path declared, then it's going to look in the default path for that file. You might need to add \\server\share\appdirectory to the path, or declare full paths.
 

yinan

Golden Member
Jan 12, 2007
1,801
2
71
Or a problem with the working directory. It may be looking for files in .\files\stuff instead of and absolute path such as \\fileserver\sharedfolder\files\stuff.

Jim
 

jimmyshawg82

Junior Member
Dec 21, 2006
24
0
0
Here are the contents of the bat file:




echo º º
echo º * Now checking for Btrieve (tm) record manager. º
echo º º
echo º If Btrieve (tm) is already loaded it will be unloaded to º
echo º to ensure that it is properly loaded with the correct º
echo º parameters for running TAS-Professional. º
btrvclr >nul
echo º º
echo º * Now Loading Btrieve (tm) record manager. º
echo º º
echo º Page Size is set to: 4096 bytes º
echo º Memory caching is set to: 64k º
echo º File Handles are set to: 32 files º
echo º º
echo º Read section 1.4.1, page 1-5 of the TAS-Professional Manual º
echo º for more information about LOADING BTRIEVE. º
echo º º
btrieve /p:4096 /m:64 /f:32 >nul
echo º º
echo º * Now Loading TAS-Professional. º
echo º º
echo º Approximate amount of memory used: 384k º
echo º º
echo º Read section 1.4.2, page 1-8 of the TAS-Professional Manual º
echo º for more information about STARTING TAS-PROFESSIONAL. º
echo º º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
tas %1
goto ni
:no_ovl
cls
dir *.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Business Tools, Inc. º
echo º º
echo º TAS-Professional Version 3.03 º
echo º º
echo º º
echo º The special file: TAS.OVL was not found in this subdirectory. º
echo º º
echo º Please make sure you are in the correct subdirectory º
echo º containing the TAS.OVL file. º
echo º º
echo º This file is on your TAS-Professional Run Disk 1. º
echo º º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
goto ni
:no_menu
cls
dir *.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Business Tools, Inc. º
echo º º
echo º TAS-Professional Version 3.03 º
echo º º
echo º º
echo º The main menu: MENU.RUN file was not found in this subdirectory. º
echo º º
echo º Please make sure you are in the correct subdirectory º
echo º containing the MENU.RUN file. º
echo º º
echo º This file is on your TAS-Professional Run Disk 1. º
echo º º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
goto ni
:ni
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Business Tools, Inc. º
echo º º
echo º TAS-Professional Version 3.03 º
echo º º
echo º º
echo º * Now unloading the Btrieve (tm) record manager. º
echo º º
echo º Read section 1.4.4, page 1-9 of the TAS-Professional Manual º
echo º for more information about UNLOADING BTRIEVE. º
 

jimmyshawg82

Junior Member
Dec 21, 2006
24
0
0
Check this out, I tried connecting to the program using another computer and it said this in the dos prompt before it shut down (I had to print screen to get a look at it):

'\\J-name\Laptop\Documents and Settings\J.0hN\Desktop\Tas'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defualting to Windows directory.


What are UNC paths??
 

RebateMonger

Elite Member
Dec 24, 2005
11,586
0
0
Originally posted by: jimmyshawg82
What are UNC paths??
A UNC path is one that starts with "\\J-name\", where "J-name is the name of a resource on the network.

You'll likely have to use a mapped drive instead.
 

jimmyshawg82

Junior Member
Dec 21, 2006
24
0
0
okay, I think things are going in the wrong direction. I don't know much about networking at all, and I don't even understand how I am suppose to change any paths or declare full paths or even where to do that? Can someone point me to some info on this? I'm basically point and click networking at this point.

One thing thats changed. I went and put the folder on my networked computer in order to make sure that it would work on its own... and it did, than I deleted the folder and from then from the recycle bin, and I tried running the program from the folder over the network again... and it works!?! What changed? did running it on the second computer install something?

The problem is not that it works now... its that I need to recreate this on another network, so I need to know what I am doing in so that I don't run into any problems.

Thanks.