blob: f167665f206ff456b1b1685cfaddf1965abcc1fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
Commands to be executed are put in run.sh files in the two directories.
On Linux, you can execute them as follows:
cd myaccountslib
./run.sh
cd ../myapp
./run.sh
#### Exercise for Windows users ####
Jump to myaccountslib directory.
Copy the content of run.sh and save in a file called run.bat.
Modify run.bat with commands that can be executed in a Command Prompt to
accomplish the same operations found in run.sh. Look at the NOTES section below
for assistance.
Run the batch file (run.bat) as follows:
.\run.bat
Do the same for the run.sh file found inside the myapp directory.
So on Windows, the commands may be executed as follows:
cd myaccountslib
.\run.bat
cd ..\myapp
.\run.bat
NOTES:
While coming up with run.bat files on Windows,
1. The initial '#!/bin/bash' line is not needed.
2. Instead of '#' character to comment lines of text, use '@REM' without quotes.
3. To delete a directory with content inside, you can use the rmdir command like this:
rmdir /s /q "Path\to\directory"
4. Windows uses '\' as the directory seperator instead of '/' in Linux.
5. Windows uses ';' as the path seperator instead of ':' in Linux.
|