sunilvedula Posted April 15, 2008 Report Share Posted April 15, 2008 Hi all, i have a name in a variable t1. i want that to be assigned to the file i am creating. Is it possible to do that.? Quote Link to comment Share on other sites More sharing options...
kevin Posted April 15, 2008 Report Share Posted April 15, 2008 Are you saying you want to create a file with that name? If so try the Variable Modify String: Save %T1% to Text File or Variable Modify String: Append %T1% to Text File commands. These are under the 'Option 2' tab of the Variable Modify String command dialog. If you are saying you want to put the content of a file into a variable use the Variable Set String %T2% from File: "%T1%" command. Quote Link to comment Share on other sites More sharing options...
Cory Posted April 15, 2008 Report Share Posted April 15, 2008 Or if you're saying you want a file name to contain that name just use it in the path like c:\users\fred\desktop\%T1%.txt Quote Link to comment Share on other sites More sharing options...
sunilvedula Posted April 15, 2008 Author Report Share Posted April 15, 2008 thanks a lot guys! it worked ! Quote Link to comment Share on other sites More sharing options...
sunilvedula Posted April 15, 2008 Author Report Share Posted April 15, 2008 hi cory, when i give the path %T1%.xls it doesnt work. it gives me the file name %t1%. Quote Link to comment Share on other sites More sharing options...
sunilvedula Posted April 15, 2008 Author Report Share Posted April 15, 2008 sorry guys ! it did not work when i used t1 but worked when i used T1. (DID NOT KNOW CAPS HAS AN EFFECT) Quote Link to comment Share on other sites More sharing options...
Cory Posted April 15, 2008 Report Share Posted April 15, 2008 Many and and likely all places where one uses variable requires you use caps. Quote Link to comment Share on other sites More sharing options...
sunilvedula Posted April 16, 2008 Author Report Share Posted April 16, 2008 Thanks cory for that insight. never knew that. that is quite helpful in all my projects which i am doing. will keep that in mind Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.