Jump to content

Recommended Posts

Posted

First off, not sure which channel to post this in. Apologies if this one is incorrect.

 

I'm trying to write a .bat file to update from my server using wget (a port to Windows).

 

Normal login would be something like "ftp://user:pass@****/" but since the shared servers force the usernames to be "user@****" there becomes a problem and wget gets confused (i tried googling and only found one response suggesting using hex).

 

well, I tried hex. something like, "ftp://user%40mydomain%2Ecom:password@****" While this works pasting in my webbrowser, not with wget.

 

NOTE: I'm using a Win32 port of wget in WinXP (I hope it's not an error with the port because I'd feel really silly for asking here)

Posted

There's an app that I use on multiple computers and I write scripts for it. I'd like to have a central place (my website) where I can sync everything when the app starts. I believe wget should do the job nicely, but I'm looking for anything I can get that done easily from a command line.

 

I dont have CuteFTP

Posted

I tried wget in linux with the same style login (ftp://user%40mydomain%2Ecom:password@****) and it worked. So one problem is the windows port doesn't support special characters correctly... i cant seem to find a different port that will. Any suggestions??

 

I've found alternatives of wget for linux, unfortunately nothing really like it for win.

Posted

Yeah, i did. The extra @ and period confuse it as well.

 

I did get a response from an author of a port and here's a summary of the email.

I know the windows port of wget has quite a history of mangling up urls (and filenames) with escapes in them

...

Or actually - are you calling this from a batch file perhaps? You do realize that %1,%2 ... %9, %0 are batch parameters right, and are replaced as such?  If that were the case, use something like %%40 instead of %40

 

Turns out that was my problem. I was running it as a batch file

 

Thanks for the assistance.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...