Dear Gregory,
I've already write you about the problem with relative pathname with Cspro.
I would like to know if it's possible to write code with them (relative pathname)
by example with the setfile function.
Thanks for all,
Relative pathname in Cspro
Relative pathname in Cspro
G.VOLNY, a CSProuser from Haiti, since 2004
-
- Posts: 1796
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Relative pathname in Cspro
You can use relative path names with the setfile function. It definitely works on the normal Windows file system. I'm not sure if it would work with UNC path names and network drives, but I imagine that it would.
Re: Relative pathname in Cspro
Thanks for your help.
I would like to know if there's a particular syntax for?
Because when i use simple pathname as "\Users\computername\Desktop\foldername" it doesn't work.
Sincerely,
I would like to know if there's a particular syntax for?
Because when i use simple pathname as "\Users\computername\Desktop\foldername" it doesn't work.
Sincerely,
G.VOLNY, a CSProuser from Haiti, since 2004
Re: Relative pathname in Cspro
Hi,
can you explain what you are trying to do?
Maybe you need to start from your application folder, something like
\..\PATH\TO\FOLDER
can you explain what you are trying to do?
Maybe you need to start from your application folder, something like
\..\PATH\TO\FOLDER
Re: Relative pathname in Cspro
Dears Gregory and Ils,
@ Ils, i try to interact more csentry with other windows programs and use the results of some dos commands inside Csentry. By Example, i can write a code to start and close record an interview regarding a part of a questionnaire using tablet automatically.
I can use mac adress to deploy more securely Csentry's application and more...
It's because i try to write code inside cspro to create file and write command inside using setfile/filecreate, filewrite.
About the relative pathname:
I try either
I send to you the application for more help from you.
Thanks in advance
@ Ils, i try to interact more csentry with other windows programs and use the results of some dos commands inside Csentry. By Example, i can write a code to start and close record an interview regarding a part of a questionnaire using tablet automatically.
I can use mac adress to deploy more securely Csentry's application and more...
It's because i try to write code inside cspro to create file and write command inside using setfile/filecreate, filewrite.
About the relative pathname:
I try either
orsetfile(getm,".\Desktop\relative_pathname\getm.bat",create);
infortunately, with no results.setfile(getm,"\..\Desktop\relative_pathname\getm.bat",create);
I send to you the application for more help from you.
Thanks in advance
- Attachments
-
- relative_pathname.zip
- (4.99 KiB) Downloaded 391 times
G.VOLNY, a CSProuser from Haiti, since 2004
-
- Posts: 1796
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Relative pathname in Cspro
You might want to read the Microsoft help about paths:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Check out the section "Fully Qualified vs. Relative Paths."
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Check out the section "Fully Qualified vs. Relative Paths."
Re: Relative pathname in Cspro
Dear Gregory,
I read it, i correct the code and that's work fine.
Thanks once more,
I read it, i correct the code and that's work fine.
Thanks once more,
G.VOLNY, a CSProuser from Haiti, since 2004