topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 3:17 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nkormanik [ switch to compact view ]

Pages: prev1 2 [3] 4 5 6 7 8 ... 23next
51
Good suggestion @Ath.  Unfortunately I don't see that SAS will allow ambiguity with the dataset it's acting on.

Here's partial code:

proc summary data=sas_1.combined;
var
i_50501_Z
i_50502_Z
i_50503_Z
i_50504_Z
i_50505_Z
i_50508_Z
;
output out=sas_1.combined_temp (drop= _:) p80= /autoname;
run;

The .combined part refers to the dataset being acted upon.  I don't believe I can use a wildcard there.

I would need to change dataset filenames.  Or change script.


52
@BGM , @publicdomain and helpful community.

BGM, your idea is a good one.  Copy out, then copy back in.  Or rename.  Etc.

Trouble is, the file contents will change.

Here is the actual scenario:

I have 100 SAS datasets.  Each dataset is alone in its folder.  The folder name corresponds to the dataset filename, plus some extra:

Below are the first three folders, and the sole file inside:

===========
E:\00\AAPL\
===========
aapl_combined.sas7bdat

===========
E:\00\ACWI\
===========
acwi_combined.sas7bdat

===========
E:\00\ACWX\
===========
acwx_combined.sas7bdat

I need to update -- add some additional columns -- to each and every dataset file.

The 'program' -- or more accurately, 'script' -- I am going to use to make the changes to each file expects the name of the file to be:

combined.sas7bdat

No prefix.

And the location of said file is set to be:

C:\SAS_1\

So, it appears that I'll have to use one of the two following approaches:

(first dragging each respective file one at a time to the 'work' folder for the running of the script)

1.  Change the 'script' file 100 times, to tailor for the specific prefix.

or

2.  Change the name of each file, temporarily.  x100.

Going #2 route, I was thinking of TEMPORARILY changing the filename:

aapl_combined.sas7bdat --> combined.sas7bdat

Then making changes to the dataset file with the existing script.

Then changing the filename back to what it was before:

combined.sas7bdat --> aapl_combined.sas7bdat

Then dragging the changed dataset file back to its proper, home folder.

This whole rigmarole is likely faced regularly by programmers.  There surely are ways and means of conducting things more efficiently.  If anyone wants to chime in their thoughts regarding a more orderly process, please speak up.

Thanks much!

Nicholas Kormanik


53
Vic (and community), I used to put small requests in Skwire's section.  Haven't for a while.  I have a mini request presently that probably belongs over there.  But will just put it here for now....

Change File Name.  Then change it back to what it was.

This would be a two-phase process:

A file is in a folder.  Alone.  File is:  "4863 - xyz.txt"

Step #1.  Change that file's name to:  "xyz.txt"

(User now does some things.  Blah, blah....)

Step #2.  Change the file "xyz.txt" back to its original name, "4863 - xyz.txt"

Done!

If there is another forum where this request is more appropriate, please let me know.  Or if there is a means that I ought to have access to (some programming language?).

Thanks a million.  Hope all are well.

Nicholas Kormanik


54
PublicDomainVic / Keep icons arranged in a folder
« on: January 30, 2022, 10:02 PM »
This one might be impossible as well.

Suppose we have a folder with a number of icons for files and folders.

We want those arranged in a very particular way.  Not merely the usual sort, by name, extension, etc.  But the exact placement within that folder.  Some icons are up, some down, some to the side.

We want to be able to take a 'snapshot' of this specific arrangement.

Take snapshot.  Then rearrange to that snapshot at a later point in time.

So, two additional 'buttons' (perhaps?) on Explorer ToolBar:

1. Take arrangement snapshot
2. Restore arrangement

Or via right-click context menu.

What do you think?  Possible or not?

Additional details would have to be considered, of course.  Like, where will the 'arrangement details' be kept?  Within the folder, maybe in a hidden file? 

Will the implied coordinates be relative to the window, say from upper-left corner of the window being 0,0?

Too, what if additional icons/files are moved to that folder, will that not affect the previous arrangement possibility?

Etc.

Windows does allow for the above in a temporary way.  If 'View; Auto arrange' and 'View; Align to grid' are both unchecked.  But the arrangement doesn't last.  Close window and reopen, icons are sorted.  Etc.

Thanks so much!

Nicholas Kormanik


55
Looks super Vic!  I think people will like it.

Thought of another request.  Will start a new topic....

56
PublicDomainVic / Re: Double-Esc = Close Program/Window
« on: January 23, 2022, 06:04 PM »
Double-Esc to close current window is huge.  Looking forward to it.

Others here might come up with dangers of doing the above.  Hope they will. 

One possible issue:  Suppose you have your Internet browser open with 20 tabs you are going to read.  And you accidentally press Esc twice.  Well....

On my keyboard, Ctrl-Esc is a handy combination, yes, so good candidate to do something with.  Might, however, have to override a standard Windows action -- opening the menu, bottom-left corner.  But I would prefer to override, as I never use the combo for that purpose.


57
Agree.  I was mostly venting.  Frustration at Windows not having as many whiteboard-like desktops as user desires.

Vic! has bigger fish to fry.

He's definitely a trooper, though.  Amazing guy....


58
Vic, some 'rename' programs might offer this same functionality.

Thus, not a huge priority, unless others here chime in showing support and encouragement.

But, as always, I greatly appreciate your positive can-do attitude.




59
Vic!, you are the one with limited time, energy, money.  You'll have to decide if such an endeavor would be worthwhile.

I, for one, would find such a program quite useful.

Thanks so much for responding!


60
New request, perhaps not even possible presently....

Suppose Windows desktop.

Highlight a set of desktop items/icons.  Say, horizontally.  Three items.  So, three across.

Given the three highlighted items, attach a number to each, serially, across, from left to right, padded with zeros (if requested by user), plus a space.

Example:

x, y, z --> 01 x, 02 y, 03 z

Is this possible by any means other than manually?

Why requesting?

Suppose user has created a series of steps laid out on the desktop.  A series of batch files, say, that requires executing in a very particular order.  Or text files outlining steps that must be executed in a particular order.

User does not want to continue taking up the desktop space with the ordered set across said desktop.  User would rather place all these into a folder, on desktop, or somewhere else.

If user simply places all these items into a folder, they will be rearranged by Windows, sorted, if you will.  Critical arrangement that was shown on desktop will be lost.

Given the prepended number, sorting by name easily arranges as wanted.

Comments greatly appreciated.

Nicholas Kormanik

p.s. -- This sort of issue points to a huge desktop problem.  I would really, really like to see a permanent sort of desktop(s) that is very much like a physical white board.  Arrange.  Save.  Leave.  Create another.  Arrange.  Save.  Leave.  Backup.  Etc., etc., etc.  On the desktop(s) would be the usual assortment of files, icons, folders, shortcuts, etc.

Presently I don't think this is possible.  Hugely needed!



61
Okay, looking forward....

Getting a shortcut file into the SendTo folder is not a big deal.

What I was asking for is to send the relevant folder path into the nkTree sub-window for that purpose, just to save some steps in the whole process.  Another approach would be to drag a folder directly onto a nkTree shortcut (say, on the desktop).

As of right now, that won't work.  Would be a mini-enhancement.


62
Download link for nkTree 1.2 ??

63
Download link?

64
PublicDomainVic / Double-Esc = Close Program/Window
« on: December 29, 2021, 05:12 PM »
Another request, Vic!

Others have tried this before on DonationCoder, but never got it quite right.

Wonder if you might want to give it a try.

Memory-resident program that adds ability to Double-Press the Escape key, and the current window, program closes.

Not at all a priority.  Just a useful little utility.

Thanks Vic!

And Happy New Year to you and everybody here!


65
Small additional request, Vic....

Not a priority.  But if it's easy enough to incorporate.

Would be nice to have nkTree in the SendTo list.  So, if user focuses on a certain folder/directory in Windows Explorer, user can right-click to bring up context menu, SendTo, and nkTree.  When nkTree comes up, the focused-on folder appears in the nkTree Directory window automatically.

Thanks for an excellent utility, Vic!

Happy New Year!!


66
Excellent program, Vic!  Works tremendously well.  Easy to eliminate folders by name in large folder/file hierarchy.

Everyone on the planet really ought to keep this gem handy.

Vic! has been achieving high quality accomplishments!  And he's just getting warmed up!


67
An early Christmas present, Vic!  You certainly are making the world a better place.

68
PublicDomainVic / Re: Flatten Folder Menu v0.1.1
« on: November 29, 2021, 06:06 PM »
Recently flattened a rather large hierarchy of files using Vic's program here.

Over 48,000 files.

Flatten did the job wonderfully!

69
I've been searching for hours for an answer.  Such a simple thing.  Huge jumble of partial answers....

Given:  Large directory tree structure, folders with files, maybe some empty folders.

Challenge:  Move recursively throughout tree.  Delete all folders in entire tree that has in name "xyz".

There might be one such folder.  There might be one hundred.

Any thoughts greatly appreciated.

Nicholas Kormanik

(thanks @publicdomain, and others, for much help on many challenges)

70
PublicDomainVic / Re: Flatten Folder Menu v0.1.1
« on: November 22, 2021, 11:57 PM »
Vic!, putting up another request.  In the new requests section....

71
PublicDomainVic / Re: Flatten Folder Menu v0.1.1
« on: November 16, 2021, 11:16 PM »
One possible enhancement request, Vic!:

If a directory tree to be flattened has a branch that exceeds 260 characters, Flatten falters.  A polite message is popped onscreen to that effect.

Then I have to try to shorten said path, and/or filename.  If user does that, Flatten fulfills flawlessly.

By the way, I've set my 'registry' to overlook long path/filenames.

Flatten still chokes... at least in perhaps a pre-do check... on long path+filename.

So, the request is, any other workaround besides manually trimming the troublemakers?

Thanks again!!



72
PublicDomainVic / Re: Flatten Folder Menu v0.1.1
« on: November 16, 2021, 05:20 PM »
This is golden, Vic!  I've used it now many times.  Super fast.  Feedback when finished.

Used another, more kludgy, method for years.  And your solution is vastly better.

Hope lots of people out there somehow come to learn of your gem.

Thanks!!

73
PublicDomainVic / Re: Flatten Folder Menu v0.1.1
« on: November 10, 2021, 04:08 AM »
Victor, three questions:

1.  How does Flatten Folder deal with same-name files?

2.  What is the upper limit number of files that can be processed that have the same name?

3.  What is the upper limit number of total files that can be processed?

Thanks!

Nicholas Kormanik

74
PublicDomainVic / Re: URLplayer thread
« on: September 05, 2021, 04:40 PM »
Good news, then, Vic.  Perhaps put a link here to pdGet?

Thanks!

75
PublicDomainVic / Re: URLplayer thread
« on: September 04, 2021, 01:32 AM »
Vic, still often getting same error as mentioned back a few months:

error.png

Hope you might be able to figure out the reason.  Seems to be timing.  Maybe due to Edge browser.  Who knows.

Thanks!
Nicholas


Pages: prev1 2 [3] 4 5 6 7 8 ... 23next