Scripting with windows 8 or seven
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 ?
Holger Köhn replied
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.