Path and filename string no longer works...?

This was working just fine till… few hours ago, at the office.

Now, at home…:

Your double backslash should work - make sure the file isn’t open elsewhere and that the path is valid (try opening the file in windows explorer).

The double \ is a must as \ is the escape character in design script.

But if you use a String node instead you should be all set.

Yes, the path opens in explorer, it’s just the current user desktop path.

This has always been working fine.

I do use “\\” in design script nodes, this is how I assemble the final string:

Even using a string node with the final path+filename string does not work… it must be my home Dynamo configuration / packages…

In explorer make a new folder on the desktop and put a txt or csv file on in it. Then go into explorer, navigate to the file, hold down shift and right click on it, and select “copy as path”. Paste that into a string node, and remove the leading and trailing ".

Post the an image showing the graph, it’s warning, and a view of the file in explorer.

Thank you Jacob.

It’s an issue with the path for my local user Desktop.

Copying the paths as you suggested works.

These two paths work fine:

D:\OneDrive\Desktop

D:\OneDrive - (company name) \Desktop

The path from the Desktop node, does not:

C:\Users\gsucc\Desktop

All of these string open the correct path in Windows Explorer, but the “user” path (the last one) does not work in Dynamo.

Thank you again…

Yep - windows 11 changes up the directories so you need to search things out differently. Gotta love the push to get everything on OneDrive… :skull:

Well, “C:\Users\gsucc\Documents” actually works, so I switched from Desktop to Documents.

Not sure what the problem is with the Desktop address, since I also have two sets of Documents folders, (under each Onedrive) and the one under User can be used, which is the string I can find in Dynamo, with the System.UserPaths node:

I need to go back to this node i think, apologies. There are more reliable ways to get desktop than the way i do it i believe in python via special folders.

Noting that is a custom node.

Windows 11 moved the desktop from C:\Users\%username%\ to C:\OneDrive\Desktop by default. It appears you’re using your D drive for your OneDrive directory, so you get D:\OneDrive\Desktop instead. This is likely modified to D:\OneDrive - %company%\Desktop as you’ve also logged into a company account.