Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2004

Tip: Looking for answers? Try searching our database.

Lunching dotnet application from batch file in windows 98

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Turner - 14 Oct 2004 21:16 GMT
Does anyone know a way of executing a dotnet application from a windows
98/ME batch file?

At the moment I get 'Bad command or filename' everytime I try to run
something.

Also, I'd like the execution to wait until the application has finished
before moving onto the next batch instruction.

Thanks in advance,
Chris.
Sijin Joseph - 15 Oct 2004 05:17 GMT
'Bad command or filename' this has nothing to do with the fact that the
app you are trying to start is a .Net exe, you can execute .Net exe's
just lke normal exes provided the .Net framework is installed. Make sure
the directory for the exe is present in the PATH environment variable.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> Does anyone know a way of executing a dotnet application from a windows
> 98/ME batch file?
[quoted text clipped - 7 lines]
> Thanks in advance,
> Chris.
Jeff Gaines - 15 Oct 2004 11:13 GMT
> 'Bad command or filename' this has nothing to do with the fact that
> the app you are trying to start is a .Net exe, you can execute .Net
[quoted text clipped - 5 lines]
> http://www.indiangeek.net
> http://weblogs.asp.net/sjoseph

And that you put quotes around paths with spaces in them - .bat files
treat spaces as de-limiters.

Signature

Jeff Gaines Damerham Hampshire UK

Chris Turner - 15 Oct 2004 11:30 GMT
I already have quotes around the full path of the executable file and the
same batch file is used on Win98, WinME, WinNT, Win2K, and WinXP.  The only
time I get 'Bad command or filename' is when the batch file executes my
dotnet app in Win98 and WinME.  Does anyone have a solution for this?

Regards
Chris

> > 'Bad command or filename' this has nothing to do with the fact that
> > the app you are trying to start is a .Net exe, you can execute .Net
[quoted text clipped - 8 lines]
> And that you put quotes around paths with spaces in them - .bat files
> treat spaces as de-limiters.
Jeff Gaines - 15 Oct 2004 13:05 GMT
> I already have quotes around the full path of the executable file and
> the same batch file is used on Win98, WinME, WinNT, Win2K, and WinXP.
[quoted text clipped - 4 lines]
> Regards
> Chris

This might be a stupid question but is the NET FW installed on the
98/ME machine (Sijin did mention this).

Signature

Jeff Gaines Damerham Hampshire UK

Chris Turner - 15 Oct 2004 15:49 GMT
Yes the dotNet Framework is installed on all operating systems.

> > I already have quotes around the full path of the executable file and
> > the same batch file is used on Win98, WinME, WinNT, Win2K, and WinXP.
[quoted text clipped - 7 lines]
> This might be a stupid question but is the NET FW installed on the
> 98/ME machine (Sijin did mention this).
Chris Turner - 15 Oct 2004 15:53 GMT
Also, If I try to run the application using the run option from the menu, it
works perfectly, just not from a batch file.

Has anyone tried to reproduce the problem and got it to work?

> > I already have quotes around the full path of the executable file and
> > the same batch file is used on Win98, WinME, WinNT, Win2K, and WinXP.
[quoted text clipped - 7 lines]
> This might be a stupid question but is the NET FW installed on the
> 98/ME machine (Sijin did mention this).
Jeff Gaines - 15 Oct 2004 16:52 GMT
> Also, If I try to run the application using the run option from the
> menu, it works perfectly, just not from a batch file.
>
> Has anyone tried to reproduce the problem and got it to work?

I don't run W98 but by a process of elimination if the app runs when
you double click the .exe from Explorer it must be down to the batch
file.

Have you tried a batch file to run something simple like Notepad? If
that works then it surely must be down to a typo in the batch file? If
it doesn't then there's something weird going on - I wonder if a W98
group might be more helpful to you, don't know that many people in this
group still use it?

Signature

Jeff Gaines Damerham Hampshire UK

Chris Turner - 15 Oct 2004 16:35 GMT
I've managed to solve the problem by using the 'START' batch file command
with a 'NOWAIT' option.

> > I already have quotes around the full path of the executable file and
> > the same batch file is used on Win98, WinME, WinNT, Win2K, and WinXP.
[quoted text clipped - 7 lines]
> This might be a stupid question but is the NET FW installed on the
> 98/ME machine (Sijin did mention this).

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.