[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: porting to Windows
- From: Stephen Kellett <lua@...>
- Date: Thu, 15 Jul 2010 09:23:25 +0100
Playing around with help on a DOS window:
jobd_no_sandbox.lua:76: os.execute("rm -fr "..job_file.." > /dev/null 2>&1")
replace rm -r with rmdir /S /Q
you won't need the > /dev/null 2 >&1
splayd.lua:958:root_dir = io.popen("pwd"):read()
replace pwd with cd
(cd with no arguments does a pwd)
Not sure about your other questions. Perhaps someone else has ideas?
Separator - Windows is happy to use / rather than \ for path separators,
just don't mix the two in the same path (things tend to go wrong if you
do). I've definitely seen / work for windows paths (recent versions of
Visual Studio specify the paths that way).
Stephen