wilko1000
asked on
VB Script save a file in a specifed location as xml
Hi
I have a script that saves a file as XML but having a problem saving it to my specified location.
Sample code:
' My specified save location
strSavePath = "C:\Test\CWTest"
' File save to location
'------------------------- ---------- ---------- ---------- ---------- -------
strFileName = strSavePath & Left(oFile.Name,Len(oFile. Name)-3) & "xml"
Set File = FSO.createTextFile(strFile Name, True)
File.Write strXML
File.Close
The file does save fine as an xml file but it keeps dumping into the test folder (next folder up) when i want to dump it into the CWTest folder
How can i amend it to save to 'CWTest' folder rather than the 'Test' folder
I have a script that saves a file as XML but having a problem saving it to my specified location.
Sample code:
' My specified save location
strSavePath = "C:\Test\CWTest"
' File save to location
'-------------------------
strFileName = strSavePath & Left(oFile.Name,Len(oFile.
Set File = FSO.createTextFile(strFile
File.Write strXML
File.Close
The file does save fine as an xml file but it keeps dumping into the test folder (next folder up) when i want to dump it into the CWTest folder
How can i amend it to save to 'CWTest' folder rather than the 'Test' folder
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks you