Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Scripting with windows 8 or seven

Hello everybody

I use scripting to update data in SAP. the script open a txt.file and automatise some actions.

The scripting works fine with windows XP but on other computer in windows 8 or seven the script don't find the file. message : file not found.

I have update the sap gui 7.30 to package 10 but we had the same problem even if we execute SAP in administrator side.

Someone have an idea ?

Best reagrds


Former Member


Seems like you miss to define fullpath of Textfiles. This cause issue:

Set objFile = objFSO.OpenTextFile("todo.txt", 1)

Set objFilelog = objFSO.OpenTextFile("log.txt", 8, true)

Should defined as fullpath:


Set objFile = objFSO.OpenTextFile("C:\YourDirectory\todo.txt", 1)

Set objFilelog = objFSO.OpenTextFile("C:\YourDirectory\log.txt", 8, true)

Then it should work.

Best regards,


1 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question