質問編集履歴

3

コマンドを修正

2020/01/20 08:49

投稿

smaeda
smaeda

スコア17

test CHANGED
File without changes
test CHANGED
@@ -58,7 +58,7 @@
58
58
 
59
59
  ```php
60
60
 
61
- $cmd = "C:\inetpub\wwwroot\cnet\Lhaplus\Lhaplus.exe /c:lzh /o:C:\inetpub\wwwroot\hoge\fuga\202001 C:\inetpub\wwwroot\hoge\output\202001";
61
+ $cmd = "C:\inetpub\wwwroot\Lhaplus\Lhaplus.exe /c:lzh /o:C:\inetpub\wwwroot\hoge\fuga\202001 C:\inetpub\wwwroot\hoge\output\202001";
62
62
 
63
63
  $return_ver = shell_exec($cmd);
64
64
 

2

見出しを追加しました

2020/01/20 08:49

投稿

smaeda
smaeda

スコア17

test CHANGED
File without changes
test CHANGED
@@ -21,6 +21,8 @@
21
21
  ・「shell_exec」を使って「Lhaplus.exe」をキックしたい
22
22
 
23
23
 
24
+
25
+ ### フォルダ階層
24
26
 
25
27
  ```フォルダ階層
26
28
 

1

フォルダ階層を追記

2020/01/20 08:48

投稿

smaeda
smaeda

スコア17

test CHANGED
File without changes
test CHANGED
@@ -22,6 +22,32 @@
22
22
 
23
23
 
24
24
 
25
+ ```フォルダ階層
26
+
27
+ C:
28
+
29
+ └inetpub
30
+
31
+ └wwwroot
32
+
33
+ ├Lhaplus (exe一式が入っており、IUSERでフルコン権限付与済み)
34
+
35
+ └hoge (IUSERでフルコン権限付与済み)
36
+
37
+ ├output
38
+
39
+ │└202001(圧縮元フォルダ)
40
+
41
+ │ └csv、Excelファイルなど・・・
42
+
43
+ └fuga
44
+
45
+ └202001(圧縮先フォルダ)
46
+
47
+ └202001.lzh(正常に完了すれば出力されるlzhファイル)
48
+
49
+ ```
50
+
25
51
 
26
52
 
27
53
  ### 試したこと
@@ -30,7 +56,7 @@
30
56
 
31
57
  ```php
32
58
 
33
- $cmd = "C:\inetpub\wwwroot\hoge\Lhaplus.lnk /c:lzh /o:C:\inetpub\wwwroot\hoge\fuga\202001 C:\inetpub\wwwroot\hoge\output\202001";
59
+ $cmd = "C:\inetpub\wwwroot\cnet\Lhaplus\Lhaplus.exe /c:lzh /o:C:\inetpub\wwwroot\hoge\fuga\202001 C:\inetpub\wwwroot\hoge\output\202001";
34
60
 
35
61
  $return_ver = shell_exec($cmd);
36
62