Skip to content

Commit

Permalink
Update run scripts and added task.vbs
Browse files Browse the repository at this point in the history
  • Loading branch information
StarmanMartin committed Jul 28, 2022
1 parent d7def97 commit e2f9a14
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ELN_file_watcher
*Version 0.1.1*
*Version 1.1*

Once all files in a subdirectory <CMD arg -src>
(or a file directly in <CMD arg -src>) have not been
Expand Down Expand Up @@ -39,6 +39,23 @@ efw -duration &lt;integer&gt; -src &lt;folder&gt; -dst &lt;url&gt;/ -user &lt;us
Only considered if result are stored in a folder.
If zipped is set the result folder will be transferred as zip file.

## Setup the efw on a Windows system
1) Download the **run_example.bat**, the **efw.exe** and the **task_example.vbs** for your system [here](https://github.com/ComPlat/ELN_file_watcher/releases/tag/latest)
- In the following introduction we will assume a 64 bit Windows system.
2) copy the efw.exe and the run_example.bat to the target directory on your target machine
- In the following we use the example "C:\Program Files\file_exporter".
3) Replace in the **task_example.vbs**:
- "&lt;Full path to run_.bat&gt;" with "C:\Program Files\file_exporter\run64_example.bat"
4) Replace in the **run64_example.bat**:
- &lt;Path to efw_win64.exe&gt; with "C:\Program Files\file_exporter\"
- Setup all parameter (hint: use _efw_win64.exe -h_):
- -dst, -src, -crt, -duration, -user, -pass, -crt, -zip
5) copy the **task_example.vbs** int the startup directory
- Hint to open startup folder:
1) press: **Win + R**
2) type: **shell:startup**
3) press: **enter**




Expand Down
16 changes: 16 additions & 0 deletions bin/HowToSetup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Setup the efw on a Windows system
1) Download the **run_example.bat**, the **efw.exe** and the **task_example.vbs** for your system [here](https://github.com/ComPlat/ELN_file_watcher/releases/tag/latest)
- In the following introduction we will assume a 64 bit Windows system.
2) copy the efw.exe and the run_example.bat to the target directory on your target machine
- In the following we use the example "C:\Program Files\file_exporter".
3) Replace in the **task_example.vbs**:
- "&lt;Full path to run_.bat&gt;" with "C:\Program Files\file_exporter\run64_example.bat"
4) Replace in the **run64_example.bat**:
- &lt;Path to efw_win64.exe&gt; with "C:\Program Files\file_exporter\"
- Setup all parameter (hint: use _efw_win64.exe -h_):
- -dst, -src, -crt, -duration, -user, -pass, -crt, -zip
5) copy the **task_example.vbs** int the startup directory
- Hint to open startup folder:
1) press: **Win + R**
2) type: **shell:startup**
3) press: **enter**
1 change: 1 addition & 0 deletions bin/run386_example.bat
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
cd "<Path to efw_win386.exe>"
efw_win386.exe -duration <time_in_sec> -src "<path_to_folder>" -dst "https://os-webdav.lsdf.kit.edu/<OE>/<inst>/projects/<PROJECTNAME>/" -user "<username>" -pass "<password>" [-crt "<path_to_server_crt>"] [-zip]
1 change: 1 addition & 0 deletions bin/run64_example.bat
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
cd "<Path to efw_win64.exe>"
efw_win64.exe -duration <time_in_sec> -src "<path_to_folder>" -dst "https://os-webdav.lsdf.kit.edu/<OE>/<inst>/projects/<PROJECTNAME>/" -user "<username>" -pass "<password>" [-crt "<path_to_server_crt>"] [-zip]
4 changes: 4 additions & 0 deletions bin/task_example.vbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "<Full path to run_.bat>" & Chr(34), 0
Set WinScriptHost = Nothing

0 comments on commit e2f9a14

Please sign in to comment.