cancel
Showing results for 
Search instead for 
Did you mean: 

vbs "save as" window

Former Member
0 Kudos

Hi,

I want to make a script that creates a report and saves it to a specific folder. Everything woks fine except the saving part. does anyone know how to make a script that types something in the file name box and then clicks save. so from when the "save as" window comes up I want it to: mark the file name box>type something there>click save.

here is a picture if you didn't quite understand what I meant

Thanks/

Isac

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Isac,

there's another good solution I'm using from member A. van Dommelen.

Look at http://scn.sap.com/message/8223656#8223656

This code is calling another vbs-program and uses send-keys (attention !!!)

For Win7 use you need 4 x tabs, XP only needs 3 x tabs for working.

Bye, netkid

Former Member
0 Kudos

Hi Isac,

if you work with vbscript you can use the transaction %PC for downloads.

Open the script recorder type %PC in the white transaction field,

press then the green button and follow the steps . . .

. . .put in your pathname and filename, and so on.

After stop recording you can see pathname and filename in the vbs-script.

Have a try!

Bye, netkid

Former Member
0 Kudos

If your save-as dialogue is not gui-modal, you will have to make sure that the dialogue window is set to the foreground and then use sendkeys commands to type in your path/filename and press the save button. See: