LoginSignup
1
1

More than 5 years have passed since last update.

フォルダ共有

Last updated at Posted at 2018-09-27

フォルダ共有

ファイアウォールの設定

Windows ファイアウォールを有効にしたまま、ファイルやプリンターを共有したい
http://faq.epsondirect.co.jp/faq/edc/app/servlet/qadoc?029082

フォルダの共有設定

Jenkins

共有フォルダのバッチファイル実行

バッチファイル

rem remote.bat
rem ------ 定義 ------
set SERVER_PATH=\\192.168.11.7\users\test\desktop
set USERNAME=192.168.11.7\test
set PASSWORD=space
set NETDIR=G:

rem ------ 処理 ------
rem 1. 接続
net use %NETDIR% %SERVER_PATH% %PASSWORD% /user:%USERNAME% /Y

rem 2. 処理
%NETDIR%
call backup.bat

rem 3. 切断
net use %NETDIR% /delete /Y

pause

JenkinsでのWindowsバッチコマンド設定

cd C:\Users\test\Desktop
call remote.bat

Jenkins on Windows の時に、net use を使うとエラーが発生する
http://iwa4.hatenablog.com/entry/2013/11/19/205408
⇒/userの指定に注意

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1