Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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 2k

  • Member
  • PipPipPipPipPip
  • 2,771 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 2k

  • Member
  • PipPipPipPipPip
  • 2,771 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