Linux vs Windows system commands
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Bob Thompson
il 24 Mar 2021
Risposto: Walter Roberson
il 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 Commenti
Risposta accettata
Walter Roberson
il 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!