Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

vbs and long file name


2 replies to this topic

spj

spj
  • Members
  • 34 posts

Posted 27 August 2003 - 18:42

Hi there,

How to use long file name in vbs?

My code gives me an error.

path=""""+Session.Property("INSTALLDIR")+Session.Property("FileName")+""""

Set fs = fso.OpenTextFile(Path, 2, True)


any ideas?

Thanks

Travis2002

Travis2002
  • Members
  • 24 posts

Posted 27 August 2003 - 19:19

Tell me if this is helpful:
http://cwashington.n...ptType=vbscript
.::Travis Mixon::.

dbareis

dbareis
  • Full Members
  • 85 posts

Posted 27 August 2003 - 22:55

>path=""""+Session.Property("INSTALLDIR")+Session.Property("FileName")+""""
>Set fs = fso.OpenTextFile(Path, 2, True)

Some suggestions:

1. Add error checking and answer this question yourself...
2. Remove the quotes around the filename as that certainly invalidates the filename.

Bye,
Dennis

---
Dennis Bareis (dbareis@No.Spam.gmail.com)
Free MSI update/creation tool (MAKEMSI):
http://users.cyberon...eis/makemsi.htm