90
Manipulating files and directories using OmniFS
OmniFS scenarios
OmniFS scenarios
Using OmniFS from the command line
Using OmniFS with a script file
Using OmniFS with a batch file
OmniFS can be used from the command line with a batch file and with a script
file.
In this scenario, OmniFS is executed from the command line.
The user executes a single operation. For example:
omnifs copy a:\temp\user.dat 2:1\user\profile.dat
Or, the user executes a set of commands provided in the script file. For example:
omnifs script scriptfs.txt
Following are the contents of Scriptfs.txt:
copy a:\temp\user.dat 2:1\user\profile.dat
copy a:\userdir 2:1\user\data
delete 2:1\user\data\copy.bat
rename 2:1\user\data\catalog.cpy catalog.dat
This scenario uses a batch file and a script file to copy, delete, and rename files
on a volume that is not recognized by the operating system on the computer.
Following are the contents of a batch file, Goomnifs.bat:
omnifs script scriptfs.txt
Following are the contents of Scriptfs.txt:
copy a:\temp\user.dat 2:1\user\profile.dat
copy a:\userdir 2:1\user\data
delete 2:1\user\data\copy.bat
rename 2:1\user\data\catalog.cpy catalog.dat
This scenario would be more efficient than using a batch file.
This scenario uses a batch file to copy, delete, and rename files on a volume that
is not recognized by the operating system on the computer.
Following are the contents of a batch file, Goomnifs.bat: