English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hello.
Someone told me to use the following command

sh example.bat

This batchfile runs fine on one computer but not on another. they say I might have to install some share program? What does that mean? Also what does "sh" mean? and what does it do? Does anyone know?

Thanks much in advance!

2007-08-28 08:14:28 · 7 answers · asked by E L 1 in Computers & Internet Software

Thanks for the feedback. The funny this is that it works on one computer and not the other with that exact command entered...
sh example.bat

2007-08-28 08:23:19 · update #1

I just did a search on my PC (Windows) where the command worked and I found a 'sh.exe' file located in the C:\cygwin\bin\sh.exe directory.

I couldn't open 'sh.bat' like ethnicz suggested because I couldn't find it.

Thanks again for all your replies. This is great. keep them coming! Thanks again!

2007-08-28 08:34:38 · update #2

7 answers

its not a command, sh.bat is a batch file, which means its a whole bunch of commands :P open it up in notepad and you'll see what i mean

2007-08-28 08:21:56 · answer #1 · answered by ethicz 3 · 1 0

sh? nah thats not a valid DOS command.. ur friend is talking bunk..

there is a dos command "share" yes.. but thats nothing to do with it..

as for running things within a batch file.. eg calling another batch file.. u'd use the command "call" e.g.

"run.bat"
call test.exe
cls
@echo hello

that would run a program call test.. then clear the screen , and print hello.

2007-08-28 15:19:50 · answer #2 · answered by junglejungle 7 · 1 0

This is from dos help
C:\help shift
Changes the position of replaceable parameters in a batch file.
SHIFT [/n]
If Command Extensions are enabled the SHIFT command supports the /n switch which tells the command to start shifting at the nth argument, where n may be between zero and eight. For example:
SHIFT /2
Would shift %3 to %2, %4 to %3, and leave %0 and %1 unaffected.
------------------------------------------------------------------------------------
It appears that one computer has Command Extensions enabled and the other does not.

2007-08-28 16:39:49 · answer #3 · answered by DOUGLAS M 6 · 0 1

I have a MS DOS 6.22 Users Guide and I just went through it with a "fine tooth comb"...

There's nothing in it that involves the letters "sh" in any of the command parameters.

Better have your friend explain what he/she is trying to tell you.

Hope this helps.

2007-08-28 15:27:29 · answer #4 · answered by Dick 7 · 0 0

It's a command interpreter in a Unix sysytem, and a valid extension in that system, (like : .exe .bas .sys .com under MS-dos and it's clones.


Now that you've mentioned Cygwin, here's a link to some info.

http://home.san.rr.com/rhedy/xfig_win.pdf

Are you running Linux as an embedded system?

2007-08-28 15:28:18 · answer #5 · answered by Anonymous · 0 0

the sh command doesn't exist on my computer. Chances are he was just pulling your leg.

2007-08-28 15:20:30 · answer #6 · answered by gambit13000@att.net 3 · 1 0

"sh" is not a valid DOS command. I dunno what your friend is smoking but that's nothing I've ever seen in my 15 years...

2007-08-28 15:16:40 · answer #7 · answered by George W 6 · 0 0

fedest.com, questions and answers