A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » Shell
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Batch file in the startup folder.



 
 
Thread Tools Display Modes
  #1  
Old December 6th 05, 03:35 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

WIN98SE



I've set up a batch file with a few SUBST commands, and a shortcut to the
file in the Startup folder.



The batch file runs OK at startup but does not terminate. I have to close
the window with the close button. How can I make the batch file run and
terminate?



Stephen Ford




  #2  
Old December 6th 05, 04:43 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

It might help if you post the contents of the batch file here so we can
have a look at the syntax. What are you trying to do? It's usually
best not to use the SUBST command on Windows, try the NET (net use)
command instead.

John

Stephen Ford wrote:
WIN98SE



I've set up a batch file with a few SUBST commands, and a shortcut to the
file in the Startup folder.



The batch file runs OK at startup but does not terminate. I have to close
the window with the close button. How can I make the batch file run and
terminate?



Stephen Ford





  #3  
Old December 6th 05, 05:30 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

It might help if you post the contents of the batch file here so we can
have a look at the syntax.


echo on
subst H: F:\
subst J: F:\data
subst K: "F:\DATA\Acquire Home Services"
subst L: F:\DATA\Paradox
subst M: "F:\DATA\WP9 App data"
subst N: "C:\WINDOWS\Application Data\Corel\PerfectExpert\9\Custom WP
Templates"
EXIT

What are you trying to do?

Create a set of dirve letters which are common to all my PCs. This enables
the use of the same s/w configuration. The PCs are in a workgroup. One
shares its data and acts like a server. The others map drives to that shared
data. The "server" run WIN98SE and can't map a drive to itself (win98
limitation) so I use subst.

Why? It's the only way I know.

It's usually best not to use the SUBST command on Windows, try the NET (net
use) command instead.


Any suggested command formats?

Stephen


  #4  
Old December 6th 05, 09:42 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

It's been a while since I did DOS batches and I'm at work on NT so I
can't test but I think the reason it doesn't close is because "echo" is
still "on". Before "Exit" put an echo off command:

@echo off

Or even this might do without needing EXIT:

@echo off
cls

The NET USE command does the same thing as SUBST but it is less prone to
errors and problems. It's well known that the subst command has a
troubled history and it is generally accepted as better practice to use
the NET USE command on Windows instead of subst. The syntax is similar,
basically in your case:

NET USE [driveletter:] \\ComputerName\ShareName\folder1\folder2

The full syntax is:

net use [{DeviceName | *}] [{\\ComputerName[\ShareName[\Volume]]]
|[http://ComputerName/ShareName[/Folder]}] [{Password | *}]]
[/user:[DomainName\]UserName] [/user:[DottedDomainName\]UserName]
[/user: [[email protected]] [/savecred] [/smartcard] [{/delete |
/persistent:{yes | no}}]

http://www.microsoft.com/technet/pro...620600035.mspx

To get help on the command do: net help or net /? or net use /? or
net use /? | more at a command prompt.

The net use command is a sub command of the powerfull net command.

John

Stephen Ford wrote:

It might help if you post the contents of the batch file here so we can
have a look at the syntax.



echo on
subst H: F:\
subst J: F:\data
subst K: "F:\DATA\Acquire Home Services"
subst L: F:\DATA\Paradox
subst M: "F:\DATA\WP9 App data"
subst N: "C:\WINDOWS\Application Data\Corel\PerfectExpert\9\Custom WP
Templates"
EXIT


What are you trying to do?


Create a set of dirve letters which are common to all my PCs. This enables
the use of the same s/w configuration. The PCs are in a workgroup. One
shares its data and acts like a server. The others map drives to that shared
data. The "server" run WIN98SE and can't map a drive to itself (win98
limitation) so I use subst.

Why? It's the only way I know.


It's usually best not to use the SUBST command on Windows, try the NET (net
use) command instead.



Any suggested command formats?

Stephen



  #5  
Old December 7th 05, 05:25 AM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

Make sure CLS is the last command in the batch file.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Stephen Ford" . wrote in message
...
WIN98SE



I've set up a batch file with a few SUBST commands, and a shortcut to the
file in the Startup folder.



The batch file runs OK at startup but does not terminate. I have to close
the window with the close button. How can I make the batch file run and
terminate?



Stephen Ford






  #6  
Old December 8th 05, 12:10 AM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

I'll give all these suggestions a try and report back...

Thanks

Stephen


  #7  
Old December 9th 05, 10:17 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

On Tue, 6 Dec 2005 14:35:33 -0000, "Stephen Ford"
. put finger to keyboard and composed:

WIN98SE



I've set up a batch file with a few SUBST commands, and a shortcut to the
file in the Startup folder.



The batch file runs OK at startup but does not terminate. I have to close
the window with the close button. How can I make the batch file run and
terminate?



Stephen Ford


R-click the shortcut, select Properties, and tick the "close on exit"
box in the Program window.

-- Franc Zabkar

Please remove one 'i' from my address when replying by email.
  #8  
Old December 13th 05, 06:26 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

R-click the shortcut, select Properties, and tick the "close on exit"
box in the Program window.


Ah, that's better. Thanks

Stephen


  #9  
Old December 13th 05, 06:32 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

The NET USE command does the same thing as SUBST

I wonder if it does?

Reading up, it seems to do the same as mapping a drive TO a shared resource,
so it's appears to be a client operation.

I need to create the resource on the "server", then share it, ... and then
map / net use from the client. Or is it OK to use net use on the "server" to
create the resource?

I've noticed that SUBST leaves the resource not shared. So I need to create
the resource and share it as the PC boots.

Stephen


  #10  
Old December 13th 05, 08:26 PM posted to microsoft.public.win98.shell
external usenet poster
 
Posts: n/a
Default Batch file in the startup folder.

I'm scratching my head a bit here...

As I see it (?) the users on the peer network are all accessing the same
peer server for the data in the folders/drives:

F:\
F:\data
F:\DATA\Acquire Home Services
F:\DATA\Paradox
F:\DATA\WP9 App data"
C:\WINDOWS\Application Data\Corel\PerfectExpert\9\Custom WP...

If you create the share(s) for these folders on the peer server the
network users will map these locally to the drive letters as you want
them, (H,J,K...) either with the subst or net use command. The only
reason you would need to subst them on the peer server is if the peer
server is also being used for the same application ie; as a workstation
also, and because it can't map the shares to itself. You cannot share
subst drives, so the other users will have to map to the folder shares.

John

Stephen Ford wrote:
The NET USE command does the same thing as SUBST



I wonder if it does?

Reading up, it seems to do the same as mapping a drive TO a shared resource,
so it's appears to be a client operation.

I need to create the resource on the "server", then share it, ... and then
map / net use from the client. Or is it OK to use net use on the "server" to
create the resource?

I've noticed that SUBST leaves the resource not shared. So I need to create
the resource and share it as the PC boots.

Stephen



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with logo.sys Leysan General 48 November 12th 05 02:16 AM
Invalid System Disk Robert General 27 January 2nd 05 02:59 AM
Win98SE Explorer Large File Properties Slow Anonymous General 21 December 12th 04 11:08 PM
missing .dll file, windows won't load greg Setup & Installation 3 October 25th 04 09:45 PM
Win98SE - problem with USB printer HBYardSale Software & Applications 2 June 20th 04 06:27 PM


All times are GMT +1. The time now is 11:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 Win98banter.
The comments are property of their posters.