Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Copy from sub directory to root director


  • Please log in to reply

#1
grandpa

grandpa

    Member

  • Member
  • PipPipPip
  • 265 posts
Hi

I have recently installed oscommerce2.2 under a sub directory (/_store_V_2) to allow me to make changes etc,and would now like to copy it to the root directory so as it becomes the web site. However I really don't know what to do to acheive this. I have asked this in the oscommerce forums but really haven't got anywhere. Our current site is www.kidzpatch.co.nz

Any help would be appreciated.

Many thanks

Grandpa
  • 0

Advertisements


#2
SpywareDr

SpywareDr

    Member 3k

  • Member
  • PipPipPipPipPipPip
  • 3,996 posts
Type the following command and press [Enter]:

copy /_store_V_2/*.* /

Note:
  • There is a single space between the "y" and the first "/" and another single space between the second "*" and the third "/". Like this:

    copy<space>/_store_V_2/*.*<space>/


  • 0

#3
grandpa

grandpa

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 265 posts
Hi

Many thanks for your help.

I'm a bit thick when it comes to these sorts of thing. But where do I copy from and to where.

many thanks

Grandpaj
  • 0

#4
SpywareDr

SpywareDr

    Member 3k

  • Member
  • PipPipPipPipPipPip
  • 3,996 posts
According to your first post you wanted to copy all files, (which is the *.* part),

From: /_store_V_2

To: /

In other words, the command:

copy /_store_V_2/*.* /

is telling the computer that you want to use the copy command to copy /_store_V_2/*.* to / (which is the root directory).

--

Notes:
  • This is for *nix Operating Systems. On DOS|Windows systems you would use backslashes instead of forward slashes, (i.e., "copy \_store_V_2\*.* \").

  • If you get an error with the "copy" command, use "cp" instead. Many newer versions of Linux/Unix/Aix, or their variants use a "copy" alias as well as the older "cp" (copy) command.

Edited by SpywareDr, 01 June 2010 - 03:13 AM.

  • 0

#5
xmephistox

xmephistox

    Member

  • Member
  • PipPip
  • 42 posts
I'm afraid that a simple copy/move is not gonna work, because the settings in the database of oscommerce will still refer to the old location, the subdirectory.

I suggest you download the subdirectory (your site), with an ftp client. Then, go into that subdirectory on your local drive and upload everything in there to the root directory, then you should be able to access your admin (still the one in the subdirectory), and change your settings there so that the install path refers to the root directory instead of the subdirectory. Right after you made that change the admin in the subdirectory won't work anymore. So exit from it. After the change has been saved to the database, only the admin in the root will work.
Then test your site in root and if everything works, you can just delete the subdirectory. A bit more complicated - or rather: it takes a bit longer to download and upload everything - but at least then you can change your settings easily.
Otherwise you end up with your files where you want them but a non working site.

Edited by xmephistox, 07 June 2010 - 11:02 PM.

  • 0

#6
grandpa

grandpa

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 265 posts
Hi

Many thanks for that.

Will have a go, and report back in a few days.

Many thanks

Grandpa
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP