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

Bruno

Former Member
replied

Hello.

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:

e,g,

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,

Holger

1 View this answer in context

Helpful Answer

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