Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to save files with dynamic file names??
#1
Solved: 11 Years, 4 Months ago
After creating a script I want to save it, so I clicked on "Save As" from "File" menu then a window appeared and asked me to enter a file name to save. my question is how we can give the file name dynamically instead of giving static file name like"file1 or file2 etc..)?

Please help me out this question
Reply
#2
Solved: 11 Years, 4 Months ago
what exactly you mean by a dynamic file name. would you like to elaborate your query for what exactly you want to do?

Reply
#3
Solved: 11 Years, 4 Months ago
dynamic names means when to save a file , it will ask you to give a suitable name for ex; file1, file2...etc. my question is we have to write such a script that it will automatically generate a unique name and save the file with this name. no need to give a file name manually enter through keyboard..
Reply
#4
Solved: 11 Years, 4 Months ago
Code:
Dim mt,mdt
mt=Time
mdt=Date
rndm=mdt&"_"&mt
rndm=Replace(rndm,"/","_")
rndm=Replace(rndm,":","_")
use rndm variable for your file name
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT issues with Outsystems dynamically generated Id/names jherron 2 1,362 03-02-2020, 09:33 PM
Last Post: Swishy70
  Extract and save a file from zip folder using VB Script karthicksri07 1 6,430 06-29-2016, 02:19 PM
Last Post: Ankesh
  Unable to Save a file in UFT 12.0.2 (Sequence contains more than one matching elemen) noeldsouza89 0 2,608 02-02-2015, 03:03 PM
Last Post: noeldsouza89
  Comparing two excel Sheets whose columns names vary Divya Roopa 2 8,652 03-26-2014, 07:20 PM
Last Post: Parke
  QTP Should open files(say txt files) it can be n number from a folder. Shiv Y 1 2,790 12-18-2013, 01:45 AM
Last Post: mlkrqtp

Forum Jump:


Users browsing this thread: 2 Guest(s)