Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: pmsteinm
« on: August 09, 2024, 07:01:00 PM »

I am using SE in Windows, but my files are in WSL2. Getting to them via \\wsl.localhost works fine except for symbolic links. I really don't care about those files and want to remove them from my project. I started writing a macro based on some old thread from 2008, but I'm guessing things have changed.

I do this:

  retVal = _ProjectRemove_File(_ProjectHandle(_project_name), fileName);

Which on its own doesn't seem to work. But if I add this to the macro:

project_add_file('\\wsl.localhost\Ubuntu\home\muuserid\somefile');

Then the remove command works. I assume my first function call does something but those changes don't actually get saved to the project file (since if I call the command twice on the same file I get a return code the second time indicating nothing changed). Can anyone tell me what function I need to call to save the project file changes?
Modify message