• hi all!

    i am trying to convert my blogger .xml to WP .wxr.
    i am doing this because i get to may import errors using the WP import tool for blogger.

    after executing blogger2wordpress.bat, i tried the following command on DOS console:
    bin/blogger2wordpress.sh samples/myblogger.xml

    then i get the following error:
    File “C:\Temp\blog\bin/blogger2wordpress.sh”, line 12
    PROJ_DIR=’dirname $0’/..
    SyntaxError: invalid syntax

    i guess it have to do with the environment setting.
    can you help me, please?

    all i want to do is to import all my posts (a 15Mg plus xml) to wordpress with the minimun errors.
    all tips are welcome.

    (i’m on windows vista)

    thanks in advance,
    antónio torres

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think .sh files are normally used in non-windows environments.

    sh files are UNIX shell commands and thus can only run on UNIX based operating systems.

    However you ain’t out of luck. You can use a emulator like cygwin. This will emulate a shell environment.

    Good luck.

    Thread Starter António Torres

    (@vaiumagasosa)

    thank you, Clayton and Snat.
    i’ll try to do it with cygwin.

    I believe a more specific interpretation of what Snat and I were saying, is that you can probably just run the .bat version of the file from the command line in a cmd shell in windows.

    blogger2wordpress.sh = ‘nix systems

    blogger2wordpress.bat = windows systems

    I could be missing something, but I can’t think of any reason why you should have to install cygwin on your machine if there is .bat version of the same file available. You may however, need to install python for windows.

    I think the scripts are probably in python, but to be sure, my suggestion is that you read all the documentation that came with the converter programs and see if it is of any help.

    This is my un-tested, best guess, theory how it probably works:

    1) install python for windows on your machine, making sure the exe’s are added to your system path. That probably happens automatically using the installer and a reboot.

    2) open a CMD window as administrator, and navigate to the directory that contains all of the converters files.

    3) Now, from the command line, run the /bin/blogger2wordpress.bat file, making sure to include any required input and output file options that it needs.

    That is a very general, and I’m sure incomplete, guess at what you probably need to do.

    [edit] Just to clarify, all of this is done at your own risk, of course. This particular converter does not appear to be “beginner friendly” if you don’t recognize what is needed from reading the documenation. Understanding the documentation and how to acquire and run the dependencies to make it work has nothing to do with WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘using blog converters on windows’ is closed to new replies.