Azzera filtri
Azzera filtri

cd desktop windows Vista/7

2 visualizzazioni (ultimi 30 giorni)
fjnb86
fjnb86 il 29 Nov 2011
Hello everyone!
Let me ask a simple question which I dont know if is possible to do it easily.
Due to the fact that the path to desktop requires the name of the user:
c:\documents and settings\(username)\desktop
is there a fast or direct way to set or access using this "cd" command?
For example:
cd desktop
thanks!

Risposta accettata

Titus Edelhofer
Titus Edelhofer il 29 Nov 2011
Hi,
not really. What might help is something like this:
u = getenv('USERPROFILE');
cd(fullfile(u, 'Desktop'))
Titus
  1 Commento
fjnb86
fjnb86 il 29 Nov 2011
Thank you for your fast answer ;)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing 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!

Translated by