Computing.Net > Forums > Windows 95/98 > Shell doesn't work

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Shell doesn't work

Reply to Message Icon

Name: CyberDude
Date: October 16, 2006 at 03:53:01 Pacific
OS: Win98SE
CPU/Ram: 1.5Ghz/256mb
Comment:

Does anyone know why the following Shell function from Visual Basic would behave differently under Windows 98SE than Windows 95?
retval = Shell("C:\command.com /c c:\mailer\getip.bat")
This function seems to be ignored by Windows 98 whereas in 95 it runs without a hitch. Even if you type what's in quotes in the Run dialog in 98 it doesn't work; in 95 it does. Does anyone have an explanation for this? or workaround? I know that this function works in NT 4.0 too.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: October 16, 2006 at 04:08:45 Pacific
Reply:

c:\mailer\getip.ba

Is that bat really there on the 98SE box?



=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: JimPIM
Date: October 16, 2006 at 06:06:19 Pacific
Reply:

Hi, Set it up as SH$=The shell info. Do the shell as Shell=SH$. Haven't done it in a long time, but had the same problem the first time I tried it way back in GBasic.

Good Luck, Jim


0

Response Number 3
Name: Derek
Date: October 16, 2006 at 14:09:34 Pacific
Reply:

Have you looked for the folder c:\mailer and the file getip.bat to see they are actually present?

They're not on my W98SE but maybe they have been added.

DerekW


0

Response Number 4
Name: CyberDude
Date: October 16, 2006 at 14:58:45 Pacific
Reply:

Hi Guys,
The folder and the file getip.bat are my creation. They are part of my program. I want to run DOS to run the batch file. I using the SHell command from Visual Basic to do this.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Shell doesn't work

softhome doesn't work www.computing.net/answers/windows-95/softhome-doesnt-work/111792.html

keyboard doesn't work in IE 5.0 www.computing.net/answers/windows-95/keyboard-doesnt-work-in-ie-50/36215.html

My USB doesn't work www.computing.net/answers/windows-95/my-usb-doesnt-work/69609.html