diff --git a/README.md b/README.md index b9efa37c..94691dcd 100644 --- a/README.md +++ b/README.md @@ -716,14 +716,18 @@ enable with `--dav`, supports winxp, win7 on windows xp/7, connect using the explorer UI: * rightclick [my computer] -> [map network drive] -> [Connect to a network server] hyperlink -> [Choose a custom network location] -> `http://192.168.123.1:3923/` +on windows 7/8/10, connect using command prompt (`wark`=password): +* `net use w: http://192.168.123.1:3923/ wark /user:a` + on windows 7/8/10, disable wpad for performance: * control panel -> [network and internet] -> [internet options] -> [connections] tab -> [lan settings] -> automatically detect settings: Nope known issues: +* win7 has a bug where it doesn't actually send the password to the server, so please type your password into the username field +* win7 cannot access servers which require authentication unless you use https or [enable basic authentication](./contrib/webdav-basicauth.reg) for http +* win7 cannot download files larger than 47.6 MiB by default; [registry fix](./contrib/webdav-unlimit.bat) to allow files up to 4 GiB (actual absolute max on windows) * winxp cannot show unicode characters outside of *some range* * latin-1 is fine, hiragana is not (not even as shift-jis on japanese xp) -* win7 cannot access servers which require authentication unless you use https or [enable basic authentication](./contrib/webdav-basicauth.reg) for http -* win7 has a bug where it doesn't actually send the password to the server, so please type your password into the username field ## file indexing diff --git a/contrib/webdav-unlimit.bat b/contrib/webdav-unlimit.bat index 7960467d..831f2ac9 100644 --- a/contrib/webdav-unlimit.bat +++ b/contrib/webdav-unlimit.bat @@ -1,7 +1,7 @@ @echo off rem removes the 47.6 MiB filesize limit when downloading from webdav -at > nul +net session >nul 2>&1 if %errorlevel% neq 0 ( echo you must run this as admin pause diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 58498f0b..04bf5ce0 100755 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -195,7 +195,8 @@ def init_E(E: EnvParams) -> None: E.mod = _unpack() if sys.platform == "win32": - E.cfg = os.path.normpath(os.environ["APPDATA"] + "/copyparty") + bdir = os.environ.get("APPDATA") or os.environ.get("TEMP") + E.cfg = os.path.normpath(bdir + "/copyparty") elif sys.platform == "darwin": E.cfg = os.path.expanduser("~/Library/Preferences/copyparty") else: diff --git a/scripts/pyinstaller/loader.py b/scripts/pyinstaller/loader.py index 86669dbc..2bb3c710 100644 --- a/scripts/pyinstaller/loader.py +++ b/scripts/pyinstaller/loader.py @@ -66,7 +66,11 @@ def meichk(): pids = [] ptn = re.compile(r"^([^\s]+)\s+([0-9]+)") - procs = sp.check_output("tasklist").decode("utf-8", "replace") + try: + procs = sp.check_output("tasklist").decode("utf-8", "replace") + except: + procs = "" # winpe + for ln in procs.splitlines(): m = ptn.match(ln) if m and filt in m.group(1).lower():