On Fri, 11 Apr 2014 09:46:51 +0100
Tom Davies <tomcecf@gmail.com> wrote:
Hi :)
So on the command-line you would do something like
cd c:/Documents and Settings/Joe B/My Documents/html files
to get into the right folder and then run the batch file from there.
I'm not sure if you can use
cd c:
Yes, you can use that to change directory. Note that this won't work to
change drive, though. Each drive has its own current directory, and you
use just a drive letter and colon to change drives. So if for example
you are on the G drive, and you use "cd c:\users\tom\documents", it
will change the current directory for the C drive, but you will still
be working on the G drive. If you then type "c:" you will switch to the
C drive, and would then already be in the documents folder that you
previously changed to.
Using the drive letter, or at least the beginning slash, is called an
absolute path, and it will work from anywhere in the filesystem. Not
using it, and just starting with a directory name, is called a relative
path, and only looks in the current folder for subdirectoires with that
name. So for example if you are in "c:\utils", and you type "cd
c:\docs\paul", you will go to the "paul" folder under "docs", which is
off the root of the C drive, but if you just typed "cd docs\paul", it
would try to go to the "paul" folder under the "docs" folder under the
"utils" folder, which you are currently in.
tbh, i think you have to skip the c: bit and plunge straight into the
rest of it. Also there is likely to be problems with the spaces so
you might have to use "escape characters" making it more like
cd "Documents and Settings"/"Joe B"/blah..
Actually, you can surround the whole path in a single set of quotes,
like so:
cd "Documents and Settings/Joe B/blah.."
Also, note that on windows it's "\" as directory separators, but on *nix
it's "/", although "/" does actually (usually) work on windows too.
or
cd Documents\ and\ Settings/Joe\ B/My\ Documents/html\ files
I just tried this, and it doesn't seem to work on windows, although it
does on *nix.
Paul
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.