易配网 - 手机资讯、时事新闻、网络资料
你的位置:易配网 > 新闻 > .sh转为.bat_

.sh转为.bat”相关资讯


.sh转为.bat_:

如何将这个.bat 执行文件改成.sh 的 shell 脚本

echo off cd ../bin set lib=../lib/ set libpath=. set interfaceURL=http://192.168.11.22/happy/ws/wether/request set userName=zhangsan set authCode=a123456 set libpath=%libpath%;%lib%commons-codec.jar set libpath=%libpath%;%lib%common... echo off
cd ../bin
set lib=../lib/
set libpath=.
set interfaceURL=http://192.168.11.22/happy/ws/wether/request
set userName=zhangsan
set authCode=a123456
set libpath=%libpath%;%lib%commons-codec.jar
set libpath=%libpath%;%lib%commons-lang.jar

set libpath=%libpath%;%lib%geronimo-jms_1.1spec-1.0.jar
set libpath=%libpath%;%lib%geronimo-jaxws_2.1_spec-1.0.jar

set libpath=%libpath%;%lib%jaxp-api-2.1.jar
set libpath=%libpath%;%lib%jaxen-1.1-beta-7.jar

echo on
java -cp %libpath% com/csdc/happy/webservice/client/happyTester %interfaceURL% %userName% %authCode%
pause

将linux下的.sh 文件代码转换成可以在win7下执行的bat代码,求大神

#!/bin/sh CP="lib/*:classes" SP=src/java/ /bin/rm -f nxt.jar /bin/rm -f nxtservice.jar /bin/rm -rf classes /bin/mkdir -p classes/ javac -encoding utf8 -sourcepath "${SP}" -classpath "${CP}" -d classes/ src/java/nxt/*.java src/jav... #!/bin/sh
CP="lib/*:classes"
SP=src/java/

/bin/rm -f nxt.jar
/bin/rm -f nxtservice.jar
/bin/rm -rf classes
/bin/mkdir -p classes/

javac -encoding utf8 -sourcepath "${SP}" -classpath "${CP}" -d classes/ src/java/nxt/*.java src/java/nxt/*/*.java || exit 1

echo "nxt class files compiled successfully"

怎么把下面的.bat文件转换成.sh文件

set JAVA_DIR=%java_home%\bin\java.exe cd %1% %2% %JAVA_DIR% -classpath ..\lib\com.jar;..\lib\org.jar;..\lib\classes12.zip;..\lib\log4j.jar;..\lib\log4jlogger.jar;..\lib\OctopusGenerator.jar; org.webdocwf.util.loader.Loader -e -u admin -... set JAVA_DIR=%java_home%\bin\java.exe
cd %1%
%2%
%JAVA_DIR% -classpath ..\lib\com.jar;..\lib\org.jar;..\lib\classes12.zip;..\lib\log4j.jar;..\lib\log4jlogger.jar;..\lib\OctopusGenerator.jar; org.webdocwf.util.loader.Loader -e -u admin -l ..\log -r shujuhuizong\prepare.xml 2>&1 >>..\log\prepare.log

%JAVA_DIR% -classpath ..\lib\com.jar;..\lib\org.jar;..\lib\classes12.zip;..\lib\log4j.jar;..\lib\log4jlogger.jar;..\lib\OctopusGenerator.jar; org.webdocwf.util.loader.Loader -e -u admin -l ..\log -r shujuhuizong\insert_tmp.xml 2>&1 >>..\log\insert_tmp.log

%JAVA_DIR% -classpath ..\lib\com.jar;..\lib\org.jar;..\lib\classes12.zip;..\lib\log4j.jar;..\lib\log4jlogger.jar;..\lib\OctopusGenerator.jar; org.webdocwf.util.loader.Loader -e -u admin -l ..\log -r shujuhuizong\insert.xml 2>&1 >>..\log\insert.log
exit

如何把windows的bat文件转换成Linux中的sh文件

有没有什么工具能直接转换这两种批处理文件的??忘各位大神给个解释....谢谢了

将shell修改为bat脚本

下面是两个脚本,通过test.sh 调用mds.sh,希望能修改为.bat或.py mds.sh脚本: d=$1 f=$2 mkdir $d ${d}_1 while [ 1 ]; do mkdir $d ${d}_1 touch $d/$f for kk in {1..10} do touch $d/${f}${kk} # mkdir $d/${d}${kk} done mv $d/$f $d/... 下面是两个脚本,通过test.sh 调用mds.sh,希望能修改为.bat或.py
mds.sh脚本:
d=$1
f=$2
mkdir $d ${d}_1
while [ 1 ];
do
mkdir $d ${d}_1
touch $d/$f
for kk in {1..10}
do
touch $d/${f}${kk} # mkdir $d/${d}${kk}
done
mv $d/$f $d/${f}_mv
mv $d/${f}_mv $d/$f
mv $d/${f}* ${d}_1/
mv ${d}_1/* ${d}/
mv ${d} ${d}2
mv ${d}2 ${d}
rm -rf ${d}/*
rm -rf $d/
rm -rf ${d}_1/
rm -rf ${d}2
done

test.sh脚本:
for i in {1..5} ;
do
for j in {1..5}
do
sh mds.sh $i $j > /dev/zero 2>&1 &
done
done

谁能把Linux的(sh)批处理换成windows下的(bat)

#!/bin/sh
cd ./bin/
if [ -e "/usr/java/jdk1.5/bin/java" ];
then
/usr/java/jdk1.5/bin/java ritspen/RitsPen_main -send
else
java ritspen/RitsPen_main -send
fi


本文出自 易配网 www.yiper.cn
手机大全
手机型号
  • 本文来自: 易配网,转载请保留出处!
  • 本文链接: .sh转为.bat_