Page 1 of 1

stats.exe bug

Posted: Thu Jan 27, 2005 2:59 am
by leigon
I was working on it again last night... for some WEARD reson its having a laff with me.

This works:
cmd = "put " & "c:\" & FileName & " " & Directory & FileName

This doesent:
cmd = "put " & App.Path & "\" & FileName & " " & Directory & FileName

Now the confusing thing is.... its the same directory :o
App.Path is c: (with \ added) So why don't it upload :roll:

Posted: Fri Jan 28, 2005 1:40 am
by leigon
ah if I had it in "C:\StatsReader" it would upload... but... if i have it in "C:\Stats Reader" ... oh whats that? a space? :P won't work :P

Posted: Fri Jan 28, 2005 9:26 pm
by Nigel
App.Path is c: (with \ added) So why don't it upload

Is App.Path really c though? :roll:

I dunno, if it aint working, it's either syntax, or logic, and seeing as you probably know what you're doing, I assume App.Path is not = to c? :P


Ignore me though...what would I know? :wink:

Posted: Fri Jan 28, 2005 9:55 pm
by Mattizme
Nigel: It doesn't like spaces.

Posted: Sat Jan 29, 2005 6:11 am
by leigon
the command works like this:

put directory\file.exe externaldirectory\externalfile.exe
As you can see there are 2 spaces

cmd = "put " & "c:\statsreader\" & FileName & " " & Directory & FileName
Is the same as:
put c:\statsreader\info.htm www\info.htm
2 spaces... so it will work

cmd = "put " & "c:\stats reader\" & FileName & " " & Directory & FileName
Is the same as:
put c:\stats reader\info.htm www\info.htm
3 spaces so it won't work....

I have even tryed the following with no luck... any ideas? come on magic you should know one or two tricks :P
put 'c:\stats reader\info.htm' 'www\info.htm'
put "c:\stats reader\info.htm" "www\info.htm"
put c:\stats%20reader\info.htm www\info.htm

Posted: Sat Jan 29, 2005 12:19 pm
by Nigel
Mattizme wrote:Nigel: It doesn't like spaces.
Who wants to gave mattizme the "stating the obvious" award? :P