Linux vs Windows system commands
5 views (last 30 days)
Show older comments
Bob Thompson
on 24 Mar 2021
Answered: Walter Roberson
on 24 Mar 2021
This may not be the forum for this, I can remove the question if it's not, but I have a script that runs a series of system commands on a Linux box environment. I would like to be able to run the script in a Windows evironment, but some of the system commands are not the same. Would any of you be able to help me convert the commands, or be able to direct me to a tool that I can use to do so?
Commands I'm having trouble converting:
'pwd' - returns current directory
'cp *original* *new*' - copies original file to new file location an name
0 Comments
Accepted Answer
Walter Roberson
on 24 Mar 2021
pwd -> cd (see https://stackoverflow.com/questions/607670/windows-shell-command-to-get-the-full-path-to-the-current-directory for more notes)
cp -> copy if you are copying folder to folder, xcopy if you are copying multiple to folder; see https://serverfault.com/questions/4639/what-is-the-windows-command-line-command-to-copy-files
0 Comments
More Answers (0)
See Also
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!