Linux vs Windows system commands
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2021 年 3 月 24 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!